Example: The following example will place a MSI Barcode on the page.
import com.cete.dynamicpdf.Document;
import com.cete.dynamicpdf.Page;
import com.cete.dynamicpdf.pageelements.barcoding.MsiBarcode;
class MyClass
{
static void Main()
{
// 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
MsiBarcode barCode = new MsiBarcode("1234567890", 50, 100, 48);
// Add the barcode to the page
page.getElements().add( barCode );
// Save the PDF
document.draw( "C:\\MyDocument.pdf" );
}
}