When I write metadata with pdfbox, by this way:
PDDocument document = PDDocument.load("/root/saper.pdf");
PDDocumentInformation metadata = document.getDocumentInformation();
metadata.setKeywords("whereisnow??");
document.setDocumentInformation(metadata);
document.save("/root/saper_saved.pdf");the data has been written here: << /Author (autore) /CreationDate (D:20050217131520+01'00') /Creator (Updated By XMP SDK) /Keywords (whereisnow??) and of course I'm not using any namespace.Using adobe xmp sdk (on windows), metadata has been written using a custom namespace (http://www.whereisnow.com)
and the pdf file contains it by this way: <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" ... ... xmlns:winKey="http://www.whereisnow.com" ... ... winKey:Keywords="blablabla"> How can I reproduce the same thing through pdfbox??
