See the AddMetadataFromDocInfo.java from the examples


PDDocumentCatalog catalog = document.getDocumentCatalog();
PDDocumentInformation info = document.getDocumentInformation();


you can set stuff... and the example shows you how to do the same for the XMP meta data.

See also the ExtractMetadata.java example.

Tilman

Am 27.08.2015 um 00:58 schrieb Roberto Nibali:
Hi

How can I remove the document information part from a PDF programmatically?
Example:

22 0 obj
<< /Creator (sdjlkadld)
    /Producer (ldksa ls dkalksdj alksd as dlaks dlaskd laskd  sdlak dl)
    /Title (skls  lsdk sd lskd sld)
    /Author (iwej wej wek elwe)
    /Subject (ad lskd jlakd jlaksd l)
    /Keywords (saldkjas dlaks dlas dlaskd laskdlas dls dalsk dk)
endobj
trailer
<< /Size 24
    /Root 23 0 R
    /Info 22 0 R
The above only shows the relevant (obfuscated) portion of the PDF, for the
sake of clarity.

Best regards
Roberto



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to