pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Westerly <dew...@gmail.com>
Subject Selective Loading of Objects
Date Tue, 13 Nov 2018 06:32:32 GMT
Hi -

I am trying to load a document that has a lot of annotations (50k+) (i.e.
comments, highlights, etc) However, just calling 'load' on the document is
extremely slow, and uses a lot of memory (2G+).

I actually don't need to use or access annotations at all (I'm using PDFBOX
through a separate library that doesn't need them), but do need access to
the PDDocument. Is there a way to load a document, but ignore all
annotations when parsing? Similarly, ignoring all items such as fonts
associated with those annotation objects.

I was browsing through PDFParser#initialiParse and COSParser, but a little
out of my depth.
Even something as simple as ignoring objects if they are of some 'type' i
could check.

Any suggestions, even partial, would be helpful.


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