Example: This example shows how to create a Basic Job Ticket Schema and Add it to the Xmp Metadata.
import com.cete.dynamicpdf.*; import com.cete.dynamicpdf.xmp.*; public class MyClass{ public static void main(String args[]) throws MalformedURLException{ // Create a PDF Document Document document = new Document(); // Add blank pages to the document document.getPages().add( new Page( PageSize.LETTER ) ); document.getPages().add( new Page( PageSize.LETTER ) ); // Create an Xmp Metadata XmpMetadata xmp = new XmpMetadata(); // Basic Job Ticket Schema. BasicJobTicketSchema job = new BasicJobTicketSchema(); job.getJobRef().add( "MyProduct", "XMP Metadata", new URL( "http://www.mydomain.com/" ) ); xmp.addSchema( job ); // Add the Xmp Metadata to the document document.setXmpMetadata( xmp ); // Save the PDF document.draw("[PhysicalPath]/MyDocument.pdf"); } }