com.cete.dynamicpdf.xmp
Class PagedTextSchema


Example: This example shows how to create a Paged Text 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[]){
 
           // 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();
  
           // Paged-Text Schema.           
           PagedTextSchema pt = new PagedTextSchema();           
           xmp.addSchema( pt );

           // Add the Xmp Metadata to the document
           document.setXmpMetadata( xmp );		
                                         
           // Save the PDF
           document.draw("[PhysicalPath]/MyDocument.pdf");
       }
 }