iText 8.0.3 API
|
PDF417 is a stacked linear barcode format used in a variety of applications such as transport, identification cards, and inventory management. More...
Classes |
|
class | Segment |
A container that encapsulates all data needed for a segment. |
|
class | SegmentList |
An utility class that encapsulates a list of segments. |
|
Public Member Functions |
|
BarcodePDF417 () | |
Creates a new BarcodePDF417 with the default settings. More... |
|
virtual void | SetMacroSegmentId (int id) |
Sets the segment id for macro PDF417 encoding More... |
|
virtual void | SetMacroSegmentCount (int cnt) |
Sets the segment count for macro PDF417 encoding More... |
|
virtual void | SetMacroFileId (String id) |
Sets the File ID for macro PDF417 encoding More... |
|
virtual void | SetDefaultParameters () |
Set the default settings that correspond to PDF417_USE_ASPECT_RATIO and PDF417_AUTO_ERROR_LEVEL . More... |
|
override Rectangle | GetBarcodeSize () |
Gets the maximum area that the barcode and the text, if any, will occupy. More... |
|
override Rectangle | PlaceBarcode (PdfCanvas canvas, Color foreground) |
Places the barcode in a PdfCanvas . More... |
|
virtual Rectangle | PlaceBarcode (PdfCanvas canvas, Color foreground, float moduleWidth, float moduleHeight) |
Places the barcode in a iText.Kernel.Pdf.Canvas.PdfCanvas. More... |
|
virtual void | PaintCode () |
Paints the barcode. More... |
|
override PdfFormXObject | CreateFormXObject (Color foreground, PdfDocument document) |
Creates a PdfFormXObject with the barcode. More... |
|
virtual PdfFormXObject | CreateFormXObject (Color foreground, float moduleWidth, float moduleHeight, PdfDocument document) |
Creates a PdfFormXObject with the barcode with given module width and module height. More... |
|
virtual byte[] | GetOutBits () |
Gets the raw image bits of the barcode. More... |
|
virtual int | GetBitColumns () |
Gets the number of X pixels of outBits . More... |
|
virtual int | GetCodeRows () |
Gets the number of Y pixels of outBits . More... |
|
virtual void | SetCodeRows (int codeRows) |
Sets the number of barcode rows. More... |
|
virtual int | GetCodeColumns () |
Gets the number of barcode data columns. More... |
|
virtual void | SetCodeColumns (int codeColumns) |
Sets the number of barcode data columns. More... |
|
virtual int[] | GetCodewords () |
Gets the codeword array. More... |
|
virtual int | GetLenCodewords () |
Gets the length of the codewords. More... |
|
virtual void | SetLenCodewords (int lenCodewords) |
Sets the length of the codewords. More... |
|
virtual int | GetErrorLevel () |
Gets the error level correction used for the barcode. More... |
|
virtual void | SetErrorLevel (int errorLevel) |
Sets the error level correction for the barcode. More... |
|
virtual byte[] | GetCode () |
Gets the bytes that form the barcode. More... |
|
virtual void | SetCode (byte[] code) |
Sets the bytes that form the barcode. More... |
|
virtual void | SetCode (String text) |
Sets the code that will form the barcode. More... |
|
virtual int | GetOptions () |
Gets the options to generate the barcode. More... |
|
virtual void | SetOptions (int options) |
Sets the options to generate the barcode. More... |
|
virtual float | GetAspectRatio () |
Gets the barcode aspect ratio. More... |
|
virtual void | SetAspectRatio (float aspectRatio) |
Sets the barcode aspect ratio. More... |
|
virtual float | GetYHeight () |
Gets the Y pixel height relative to X. More... |
|
virtual void | SetYHeight (float yHeight) |
Sets the Y pixel height relative to X. More... |
|
![]() |
|
virtual PdfFormXObject | CreateFormXObject (PdfDocument document) |
Creates a PdfFormXObject with the barcode. More... |
|
Static Public Attributes |
|
const int | PDF417_USE_ASPECT_RATIO = 0 |
Auto-size is made based on aspectRatio and yHeight . More... |
|
const int | PDF417_FIXED_RECTANGLE = 1 |
The size of the barcode will be at least codeColumns*codeRows . More... |
|
const int | PDF417_FIXED_COLUMNS = 2 |
The size will be at least codeColumns with a variable number of codeRows . More... |
|
const int | PDF417_FIXED_ROWS = 4 |
The size will be at least codeRows with a variable number of codeColumns . More... |
|
const int | PDF417_AUTO_ERROR_LEVEL = 0 |
The error level correction is set automatically according to ISO 15438 recommendations. More... |
|
const int | PDF417_USE_ERROR_LEVEL = 16 |
The error level correction is set by the user. More... |
|
const int | PDF417_FORCE_BINARY = 32 |
One single binary segment is used More... |
|
const int | PDF417_USE_RAW_CODEWORDS = 64 |
No text interpretation is done and the content of codewords is used directly. More... |
|
const int | PDF417_INVERT_BITMAP = 128 |
Inverts the output bits of the raw bitmap that is normally bit one for black. More... |
|
const int | PDF417_USE_MACRO = 256 |
Use Macro PDF417 Encoding More... |
|
PDF417 is a stacked linear barcode format used in a variety of applications such as transport, identification cards, and inventory management.
PDF417 is a stacked linear barcode format used in a variety of applications such as transport, identification cards, and inventory management. "PDF" stands for Portable Data File. The "417" signifies that each pattern in the code consists of 4 bars and spaces in a pattern that is 17 units (modules) long. It is defined in ISO 15438.
|
inline |
Creates a new BarcodePDF417
with the default settings.
|
inlinevirtual |
Creates a PdfFormXObject with the barcode with given module width and module height.
foreground | The color of the pixels. It can be null |
moduleWidth | The width of the pixels. |
moduleHeight | The height of the pixels. |
document | The document |
|
inlinevirtual |
Creates a PdfFormXObject with the barcode.
foreground | the color of the pixels. It can be null |
Implements iText.Barcodes.Barcode2D.
|
inlinevirtual |
Gets the barcode aspect ratio.
|
inlinevirtual |
Gets the maximum area that the barcode and the text, if any, will occupy.
Implements iText.Barcodes.Barcode2D.
|
inlinevirtual |
Gets the number of X pixels of outBits
.
outBits
|
inlinevirtual |
Gets the bytes that form the barcode.
Gets the bytes that form the barcode. This bytes should be interpreted in the codepage Cp437.
|
inlinevirtual |
Gets the number of barcode data columns.
|
inlinevirtual |
Gets the number of Y pixels of outBits
.
Gets the number of Y pixels of outBits
. It is also the number of rows in the barcode.
outBits
|
inlinevirtual |
Gets the codeword array.
Gets the codeword array. This array is always 928 elements long. It can be written to if the option PDF417_USE_RAW_CODEWORDS
is set.
|
inlinevirtual |
Gets the error level correction used for the barcode.
Gets the error level correction used for the barcode. It may different from the previously set value.
|
inlinevirtual |
Gets the length of the codewords.
|
inlinevirtual |
Gets the options to generate the barcode.
|
inlinevirtual |
Gets the raw image bits of the barcode.
Gets the raw image bits of the barcode. The image will have to be scaled in the Y direction by yHeight
.
|
inlinevirtual |
Gets the Y pixel height relative to X.
|
inlinevirtual |
Paints the barcode.
Paints the barcode. If no exception was thrown a valid barcode is available.
|
inlinevirtual |
Places the barcode in a PdfCanvas
.
Implements iText.Barcodes.Barcode2D.
|
inlinevirtual |
Places the barcode in a iText.Kernel.Pdf.Canvas.PdfCanvas.
canvas | the iText.Kernel.Pdf.Canvas.PdfCanvas where the barcode will be placed |
foreground | the iText.Kernel.Colors.Color of the bars of the barcode |
moduleWidth | the width of the thinnest bar |
moduleHeight | the height of the bars |
|
inlinevirtual |
Sets the barcode aspect ratio.
Sets the barcode aspect ratio. A ratio or 0.5 will make the barcode width twice as large as the height.
aspectRatio | the barcode aspect ratio |
|
inlinevirtual |
Sets the bytes that form the barcode.
Sets the bytes that form the barcode. This bytes should be interpreted in the codepage Cp437.
code | the bytes that form the barcode |
|
inlinevirtual |
Sets the code that will form the barcode.
Sets the code that will form the barcode. This text is converted to bytes using the encoding Cp437.
text | the text that will form the barcode |
|
inlinevirtual |
Sets the number of barcode data columns.
Sets the number of barcode data columns. This number may be changed to keep the barcode valid.
codeColumns | the number of barcode data columns |
|
inlinevirtual |
Sets the number of barcode rows.
Sets the number of barcode rows. This number may be changed to keep the barcode valid.
codeRows | the number of barcode rows |
|
inlinevirtual |
Set the default settings that correspond to PDF417_USE_ASPECT_RATIO
and PDF417_AUTO_ERROR_LEVEL
.
|
inlinevirtual |
Sets the error level correction for the barcode.
errorLevel | the error level correction for the barcode |
|
inlinevirtual |
Sets the length of the codewords.
lenCodewords | the length of the codewords |
|
inlinevirtual |
Sets the File ID for macro PDF417 encoding
id | the file id |
|
inlinevirtual |
Sets the segment count for macro PDF417 encoding
cnt | the number of macro segments |
|
inlinevirtual |
Sets the segment id for macro PDF417 encoding
id | the id (starting at 0) |
|
inlinevirtual |
Sets the options to generate the barcode.
Sets the options to generate the barcode. This can be all the PDF417_*
constants.
options | the options to generate the barcode |
|
inlinevirtual |
Sets the Y pixel height relative to X.
Sets the Y pixel height relative to X. It is usually 3.
yHeight | the Y pixel height relative to X |
|
static |
The error level correction is set automatically according to ISO 15438 recommendations.
|
static |
The size will be at least codeColumns
with a variable number of codeRows
.
|
static |
The size of the barcode will be at least codeColumns*codeRows
.
|
static |
The size will be at least codeRows
with a variable number of codeColumns
.
|
static |
One single binary segment is used
|
static |
Inverts the output bits of the raw bitmap that is normally bit one for black.
Inverts the output bits of the raw bitmap that is normally bit one for black. It has only effect for the raw bitmap.
|
static |
Auto-size is made based on aspectRatio
and yHeight
.
|
static |
The error level correction is set by the user.
The error level correction is set by the user. It can be 0 to 8.
|
static |
Use Macro PDF417 Encoding
|
static |
No text
interpretation is done and the content of codewords
is used directly.