That did it! And that approach is really helpful to know; I didn’t realize I could access elements that way.
Thank you! -- Matthew Clemente From: Tilman Hausherr <[email protected]> <[email protected]> Reply: [email protected] <[email protected]> <[email protected]> Date: July 24, 2018 at 12:26:17 AM To: [email protected] <[email protected]> <[email protected]> Subject: Re: Removing Embedded Index 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]

