}
PDDocumentCatalog catalog = document.getDocumentCatalog();
PDMetadata meta = catalog.getMetadata();
if ( meta != null)
{
XMPMetadata metadata = meta.exportXMPMetadata();
XMPSchemaDublinCore dc = metadata.getDublinCoreSchema();
if (dc != null)
{
display("Title:", dc.getTitle());
display("Description:", dc.getDescription());
list("Creators: ", dc.getCreators());
list("Dates:", dc.getDates());
}
XMPSchemaPDF pdf = metadata.getPDFSchema();
if (pdf != null)
{
display("Keywords:", pdf.getKeywords());
display("PDF Version:", pdf.getPDFVersion());
display("PDF Producer:", pdf.getProducer());
}
XMPSchemaBasic basic = metadata.getBasicSchema();
if (basic != null)
{
display("Create Date:", basic.getCreateDate());
display("Modify Date:", basic.getModifyDate());
display("Creator Tool:", basic.getCreatorTool());