DynamicPDF™ Generator for Java has built-in support for Bar Codes. These Bar Codes are rendered using vector based graphics and can be scaled to any size without loosing resolution. The bar codes are page elements and can be placed on a page in the same manner as other page elements. The following Bar Codes are supported:
- Codabar
- Code 128
- Code 2 of 5
- Code 3 of 9
- Postnet
- Interleaved 2 of 5
- EAN/JAN 13
- EAN/JAN 13 Supplement 2
- EAN/JAN 13 Supplement 5
- UPC Version A
- UPC Version A Supplement 2
- UPC Version A Supplement 5
- EAN/JAN 8
- EAN/JAN 8 Supplement 2
- EAN/JAN 8 Supplement 5
- UPC Version E
- UPC Version E Supplement 2
- UPC Version E Supplement 5
- PDF417
- MacroPDF417
Adding a Bar Code to a page is very straight forward:
[Java]
// Add a bar code to a page.
page1.getElements().add(new Code128("Barcode Data", 0, 0, 20));
| See Also |
com.cete.dynamicpdf.pageelements.barcoding | Programming With Generator for Java | Getting Started

