pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Staerk <jsta...@usegroup.de>
Subject How to write XMPbox XMPMetadata?
Date Wed, 09 Apr 2014 15:20:09 GMT
Hi,

I can create jempbox XMPMetadata for my PDDocument doc using

	PDDocumentCatalog cat = doc.getDocumentCatalog();
	PDMetadata metadata = new PDMetadata(doc);
	org.apache.jempbox.xmp.XMPMetadata xmp=new
org.apache.jempbox.xmp.XMPMetadata()
	metadata.importXMPMetadata(xmp);

and apparently I'm supposed to create xmpbox XMPMetadata using a
factory (	org.apache.xmpbox.XMPMetadata
xmpMeta=XMPMetadata.createXMPMetadata() ;
		PDFAExtensionSchema
pdfaext=xmpMeta.createAndAddPDFAExtensionSchemaWithDefaultNS();).

Now: how can I write the xmpbox.XMPMetadata into my document, i.e. what
is the equivalent to jempbox' PDMetadata importXMPMetadata(xmp)?


Thanks and kind regards
Jochen

-- 
mit freundlichen Grüßen
Jochen Stärk

www.usegroup.de      (home office)
Albigerstr. 22       Huswertstraße 14
55232 Alzey          60435 Frankfurt
Tel: (069)569940-20  Fax: (069)569940-19
Mobil: (0177)4512645

Mime
View raw message