com.lowagie.text.pdf
public class BarcodePDF417 extends Object
Image or a raw bitmap.
| Nested Class Summary | |
|---|---|
| protected static class | BarcodePDF417.Segment |
| protected static class | BarcodePDF417.SegmentList |
| Field Summary | |
|---|---|
| protected static int | ABSOLUTE_MAX_TEXT_SIZE |
| protected static int | AL |
| protected static int | ALPHA |
| protected static int | AS |
| float | aspectRatio Holds value of property aspectRatio. |
| int | bitColumns Holds value of property bitColumns. |
| protected int | bitPtr |
| protected static int | BYTESHIFT |
| protected static int | BYTE_MODE |
| protected static int | BYTE_MODE_6 |
| int | codeColumns Holds value of property codeColumns. |
| int | codeRows Holds value of property codeRows. |
| int[] | codewords Holds value of property codewords. |
| protected int | cwPtr |
| static int[][] | CLUSTERS |
| int | errorLevel Holds value of property errorLevel. |
| static int[][] | ERROR_LEVEL |
| protected static int | ISBYTE |
| int | lenCodewords Holds value of property lenCodewords. |
| protected static int | LL |
| protected static int | LOWER |
| String | macroFileId |
| int | macroIndex |
| int | macroSegmentCount |
| int | macroSegmentId |
| protected static int | MACRO_LAST_SEGMENT |
| protected static int | MACRO_SEGMENT_ID |
| protected static int | MAX_DATA_CODEWORDS |
| protected static int | MIXED |
| static String | MIXED_SET |
| protected static int | ML |
| protected static int | MOD |
| protected static int | NUMERIC_MODE |
| int | options Holds value of property options. |
| byte[] | outBits Holds value of property outBits. |
| protected static int | PAL |
| static int | PDF417_AUTO_ERROR_LEVEL The error level correction is set automatically according
to ISO 15438 recommendations. |
| static int | PDF417_FIXED_COLUMNS The size will be at least codeColumns
with a variable number of codeRows. |
| static int | PDF417_FIXED_RECTANGLE The size of the barcode will be at least codeColumns*codeRows. |
| static int | PDF417_FIXED_ROWS The size will be at least codeRows
with a variable number of codeColumns. |
| static int | PDF417_FORCE_BINARY
One single binary segment is used |
| static int | PDF417_INVERT_BITMAP Inverts the output bits of the raw bitmap that is normally
bit one for black. |
| static int | PDF417_USE_ASPECT_RATIO Auto-size is made based on aspectRatio and yHeight. |
| static int | PDF417_USE_ERROR_LEVEL The error level correction is set by the user. |
| static int | PDF417_USE_MACRO Use Macro PDF417 Encoding |
| static int | PDF417_USE_RAW_CODEWORDS No text interpretation is done and the content of codewords
is used directly. |
| protected static int | PL |
| protected static int | PS |
| protected static int | PUNCTUATION |
| static String | PUNCTUATION_SET |
| protected BarcodePDF417.SegmentList | segmentList |
| protected static int | SPACE |
| protected static int | START_CODE_SIZE |
| protected static int | START_PATTERN |
| protected static int | STOP_PATTERN |
| protected static int | STOP_SIZE |
| byte[] | text Holds value of property text. |
| protected static int | TEXT_MODE |
| float | yHeight Holds value of property yHeight. |
| Constructor Summary | |
|---|---|
| BarcodePDF417() Creates a new BarcodePDF417 with the default settings. | |
| Method Summary | |
|---|---|
| void | append(int in, int len) |
| void | append(String s) |
| protected void | assemble() |
| protected void | basicNumberCompaction(int start, int length) |
| void | basicNumberCompaction(byte[] input, int start, int length) |
| void | breakString() |
| void | byteCompaction(int start, int length) |
| protected void | byteCompaction6(int start) |
| protected void | calculateErrorCorrection(int dest) |
| protected boolean | checkSegmentType(BarcodePDF417.Segment segment, char type) |
| Image | createAwtImage(Color foreground, Color background) Creates a java.awt.Image. |
| protected void | dumpList() |
| float | getAspectRatio() Gets the barcode aspect ratio. |
| int | getBitColumns() Gets the number of X pixels of outBits. |
| int | getCodeColumns() Gets the number of barcode data columns. |
| int | getCodeRows() Gets the number of Y pixels of outBits.
|
| int[] | getCodewords() Gets the codeword array. |
| int | getErrorLevel() Gets the error level correction used for the barcode. |
| Image | getImage() Gets an Image with the barcode. |
| int | getLenCodewords() Gets the length of the codewords. |
| protected int | getMaxSquare() |
| int | getOptions() Gets the options to generate the barcode. |
| byte[] | getOutBits() Gets the raw image bits of the barcode. |
| protected int | getSegmentLength(BarcodePDF417.Segment segment) |
| byte[] | getText() Gets the bytes that form the barcode. |
| static int | getTextTypeAndValue(byte[] input, int maxLength, int idx) |
| protected int | getTextTypeAndValue(int maxLength, int idx) |
| float | getYHeight() Gets the Y pixel height relative to X. |
| void | macroCodes() |
| protected static int | maxPossibleErrorLevel(int remain) |
| void | numberCompaction(byte[] input, int start, int length) |
| protected void | numberCompaction(int start, int length) |
| protected void | outCodeword(int codeword) |
| protected void | outCodeword17(int codeword) |
| protected void | outCodeword18(int codeword) |
| protected void | outPaintCode() |
| protected void | outStartPattern() |
| protected void | outStopPattern() |
| void | paintCode() Paints the barcode. |
| void | setAspectRatio(float aspectRatio) Sets the barcode aspect ratio. |
| void | setCodeColumns(int codeColumns) Sets the number of barcode data columns.
|
| void | setCodeRows(int codeRows) Sets the number of barcode rows. |
| void | setDefaultParameters() Set the default settings that correspond to PDF417_USE_ASPECT_RATIO
and PDF417_AUTO_ERROR_LEVEL. |
| void | setErrorLevel(int errorLevel) Sets the error level correction for the barcode. |
| void | setLenCodewords(int lenCodewords) Sets the length of the codewords. |
| void | setMacroFileId(String id)
Sets the File ID for macro PDF417 encoding |
| void | setMacroSegmentCount(int cnt)
Sets the segment count for macro PDF417 encoding |
| void | setMacroSegmentId(int id)
Sets the segment id for macro PDF417 encoding |
| void | setOptions(int options) Sets the options to generate the barcode. |
| void | setText(byte[] text) Sets the bytes that form the barcode. |
| void | setText(String s) Sets the text that will form the barcode. |
| void | setYHeight(float yHeight) Sets the Y pixel height relative to X. |
| void | textCompaction(byte[] input, int start, int length) |
| protected void | textCompaction(int start, int length) |
codeColumns
with a variable number of codeRows.codeColumns*codeRows.codeRows
with a variable number of codeColumns.aspectRatio and yHeight.See Also: setMacroFileId BarcodePDF417 BarcodePDF417
text interpretation is done and the content of codewords
is used directly.BarcodePDF417 with the default settings.java.awt.Image.Parameters: foreground the color of the bars background the color of the background
Returns: the image
Returns: the barcode aspect ratio
outBits.Returns: the number of X pixels of outBits
Returns: he number of barcode data columns
outBits.
It is also the number of rows in the barcode.Returns: the number of Y pixels of outBits
PDF417_USE_RAW_CODEWORDS
is set.Returns: the codeword array
Returns: the error level correction used for the barcode
Image with the barcode. The image will have to be
scaled in the Y direction by yHeightfor the barcode
to have the right printing aspect.Returns: the barcode Image
Throws: BadElementException on error
Returns: the length of the codewords
Returns: the options to generate the barcode
yHeight.Returns: The raw barcode image
Returns: the bytes that form the barcode
Returns: the Y pixel height relative to X
Parameters: aspectRatio the barcode aspect ratio
Parameters: codeColumns the number of barcode data columns
Parameters: codeRows the number of barcode rows
PDF417_USE_ASPECT_RATIO
and PDF417_AUTO_ERROR_LEVEL.Parameters: errorLevel the error level correction for the barcode
Parameters: lenCodewords the length of the codewords
Parameters: id the file id
Parameters: cnt the number of macro segments
See Also: BarcodePDF417
Parameters: id the id (starting at 0)
See Also: BarcodePDF417
PDF417_* constants.Parameters: options the options to generate the barcode
Parameters: text the bytes that form the barcode
Parameters: s the text that will form the barcode
Parameters: yHeight the Y pixel height relative to X