Returns an Image object containing a PDF417 barcode.
public static Image createPDF417(String data, double narrowBarWidth, int rotation, int resolution, boolean truncateSymbol, int mode, int ecl, boolean handleTilde, int rows, int columns, String imageFormat) |
Parameters
data
Specifies a string which will be encoded by PDF417 barcode.
narrowBarWidth
Specifies the narrow bar width in centimeters.
rotation
Specifies the orientation of the barcode, a valid value should be 0, 1, 2, or 3. Please refer to Orientation Constants.
resolution
Specifies the resolution (DPI) of a device onto which a barcode will be rendered. The default value is 96 for computer screen.
mode
Specifies the encoding mode for PDF417 barcode, a valid value should be 0, 1 or 2. Please refer to Mode Constants.
ecl
Specifies the error correction level, a valid value should be between 0 and 8. Please refer to Error Correction Level Constants.
handleTilde
Specifies a boolean flag indicating whether or not it is required to process the tilde character "~". If it is set to TRUE, non-printable characters can be passed to a barcode using the tilde character, "~dNNN" represents an ASCII character encoded by the 3 digits NNN, for example, "~d010" represents the character LF (line feed).
rows
Specifies the preferred number of rows for PDF417 barcode. If it is set to 0, an optimized value will be chosen instead.
columns
Specifies the preferred number of columns for PDF417 barcode. If it is set to 0, an optimized value will be chosen instead.
imageFormat
Specifies barcode image format, it can be "bmp", "jpg", or "png".