com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class BarcodeField

    • Constructor Detail

      • BarcodeField

        public BarcodeField(Page page,
                            Rectangle rect)

        Initializes new instance of the BarcodeField class.

        Parameters:
        page - The page where to place new barcode.
        rect - Barcode sizes given in rectangle.
      • BarcodeField

        public BarcodeField(IDocument doc,
                            Rectangle rect)

        Initializes new instance of the BarcodeField class.

        Parameters:
        doc - Document where field will be created.
        rect - Rectangle where field will be placed on the page.
    • Method Detail

      • getResolution

        public int getResolution()

        Gets the resolution, in dots-per-inch (dpi), at which the barcode object is rendered.

        Returns:
        int value
      • getCaption

        public String getCaption()

        Gets the caption of the barcode object.

        Returns:
        String value
      • getSymbology

        public int getSymbology()

        Specifies which barcode or glyph technology is to be used on this annotation, see Symbology for details.

        Returns:
        Symbology element
        See Also:
        Symbology
      • getXSymWidth

        public int getXSymWidth()

        Gets The horizontal distance, in pixels, between two barcode modules.

        Returns:
        int value
      • getXSymHeight

        public int getXSymHeight()

        Gets the the vertical distance between two barcode modules, measured in pixels. The ratio XSymHeight/XSymWidth shall be an integer value. For PDF417, the acceptable ratio range is from 1 to 4. For QRCode and DataMatrix, this ratio shall always be 1

        Returns:
        int value
      • getECC

        public int getECC()

        Gets an integer value representing the error correction coefficient. For PDF417, shall be from 0 to 8. For QRCode, shall be from 0 to 3 (0 for ‘L’, 1 for ‘M’, 2 for ‘Q’, and 3 for ‘H’).

        Returns:
        int value