Example: The following example will place a Rm4scc barcode on the page.
import com.cete.dynamicpdf.Document;
import com.cete.dynamicpdf.Page;
import com.cete.dynamicpdf.pageelements.barcoding.Rm4scc;
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
Rm4scc barCode = new Rm4scc("20815470412", 50, 250);
// Add the barcode to the page
page.getElements().add( barCode );
// Save the PDF
document.draw( "C:\\MyDocument.pdf" );
}
}