Am 24.07.2018 um 02:07 schrieb Matthew Clemente:
First of all, thanks from all the feedback this mailing list has provided to previous questions; it’s been incredibly helpful.

I have a pdf created with Acrobat that has an embedded index that I would like to remove.

When I use the debugger, I can see it, under "Root/PieceInfo/SearchIndex”.

I’ve attached an example pdf and a screenshot of the debugger, with the path.

Is there a way that I can access and remove the embedded search index with PDFBox?

Your attachments didn't get through... you'll have to upload them to a sharehoster

likely

((COSDictionary)document.getDocumentCatalog().getCOSObject().getItem("PieceInfo")).removeItem(COSName.getPDFName("SearchIndex");

Tilman



Thanks!

--
Matthew Clemente


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


Reply via email to