com.cete.dynamicpdf.pageelements.barcoding
Class IsmnSup5
Example : The following example will place an ISMN, 5 digit supplement barcode on the page.
import com.cete.dynamicpdf.*;
import com.cete.dynamicpdf.pageelements.*;
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
IsmnSup5 barCode = new IsmnSup5("979-0-1234-5678", "12345", 50, 300);
// Add the barcode to the page
page.getElements().add(barCode);
// Save the PDF
document.draw("[Physicalpath]/MyDocument.pdf" );
}
}