Java Doc for BarcodePDF417.java in » PDF » pdf-itext » com » lowagie » text » pdf » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Generates the 2D barcode PDF417. Supports dimensioning auto-sizing, fixed
and variable sizes, automatic and manual error levels, raw codeword input,
codeword size optimization and bitmap inversion. The output can
be a CCITT G4 Image or a raw bitmap.
author: Paulo Soares (psoares@consiste.pt)
Gets an 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.
the barcode Image throws: BadElementException - on error
Paints the barcode. If no exception was thrown a valid barcode is available.
setAspectRatio
public void setAspectRatio(float aspectRatio)(Code)
Sets the barcode aspect ratio. A ratio or 0.5 will make the
barcode width twice as large as the height.
Parameters: aspectRatio - the barcode aspect ratio
Sets the number of barcode data columns.
This number may be changed to keep the barcode valid.
Parameters: codeColumns - the number of barcode data columns
Sets the text that will form the barcode. This text is converted
to bytes using the encoding Cp437.
Parameters: s - the text that will form the barcode