Example: The following example will place a Intelligent Mail 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 intelligent mail barcode IntelligentMailBarCode intelligentMailBarCode = new IntelligentMailBarCode("0123456709498765432101234567891",50, 150); // Add the intelligent mail barcode to the page page.getElements().add( intelligentMailBarCode ); // Save the PDF document.draw("[Physicalpath]/MyDocument.pdf" ); } }