BarcodeField
Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.Annotation com.aspose.pdf.WidgetAnnotation com.aspose.pdf.Field com.aspose.pdf.TextBoxField com.aspose.pdf.BarcodeField, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation com.aspose.pdf.WidgetAnnotation com.aspose.pdf.Field com.aspose.pdf.TextBoxField com.aspose.pdf.BarcodeField, com.aspose.pdf.Annotation, com.aspose.pdf.WidgetAnnotation com.aspose.pdf.Field com.aspose.pdf.TextBoxField com.aspose.pdf.BarcodeField, com.aspose.pdf.WidgetAnnotation, com.aspose.pdf.Field com.aspose.pdf.TextBoxField com.aspose.pdf.BarcodeField, com.aspose.pdf.Field, com.aspose.pdf.TextBoxField com.aspose.pdf.BarcodeField, com.aspose.pdf.TextBoxField, com.aspose.pdf.BarcodeField
All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericEnumerable< WidgetAnnotation >, com.aspose.ms.System.Collections.IEnumerable< WidgetAnnotation >, com.aspose.ms.System.ICloneable, Cloneable, Iterable < WidgetAnnotation >
public final class BarcodeField extends TextBoxField
Class represents barcode field.
Constructors
| Constructor | Description |
|---|---|
| BarcodeField | Initializes new instance of the {@code BarcodeField} class. |
| BarcodeField | Initializes new instance of the {@code BarcodeField} class. |
Methods
| Method | Description |
|---|---|
| getCaption | Gets the caption of the barcode object. |
| 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’). |
| getResolution | Gets the resolution, in dots-per-inch (dpi), at which the barcode object is rendered. |
| getSymbology | Specifies which barcode or glyph technology is to be used on this annotation, see {@code Symbology} for details. |
| 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 |
| getXSymWidth | Gets The horizontal distance, in pixels, between two barcode modules. |
BarcodeField
Initializes new instance of the {@code BarcodeField} class.
BarcodeField
Initializes new instance of the {@code BarcodeField} class.
getCaption
public String getCaption()
Gets the caption of the barcode object.
Returns: String 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
getResolution
public int getResolution()
Gets the resolution, in dots-per-inch (dpi), at which the barcode object is rendered.
Returns: int value
getSymbology
public int getSymbology()
Specifies which barcode or glyph technology is to be used on this annotation, see {@code Symbology} for details.
Returns: Symbology element @see Symbology
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
getXSymWidth
public int getXSymWidth()
Gets The horizontal distance, in pixels, between two barcode modules.
Returns: int value