Example: The following example will place a Pdf417 bar code on the page.
import com.cete.dynamicpdf.*; import com.cete.dynamicpdf.pageelements.barcoding.*; public class MyClass{ public static void main(String args[]){ // Create a PDF Document Document document = new Document(); // Create a Page and add it to the document Page page = new Page(); document.getPages().add(page); // Create a barcode Pdf417 pdf417 = new Pdf417("Pdf417 Bar Code.", 10.0f, 10.0f, 2, 2.0f); // Add the barcode to the page page.getElements().add(pdf417); // Save the PDF document.draw("[Physicalpath]/MyDocument.pdf" ); } }