pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Clemente <mjcleme...@gmail.com>
Subject Re: Removing Embedded Index
Date Tue, 24 Jul 2018 08:16:51 GMT
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 <thausherr@t-online.de> <thausherr@t-online.de>
Reply: users@pdfbox.apache.org <users@pdfbox.apache.org>
<users@pdfbox.apache.org>
Date: July 24, 2018 at 12:26:17 AM
To: users@pdfbox.apache.org <users@pdfbox.apache.org>
<users@pdfbox.apache.org>
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: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message