Skip to content

Speeding up individual page rendering of large PDFs with range query? #557

Answered by adolski
cudevmaxwell asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @cudevmaxwell,

PDDocument wants to read the whole PDF in order to load it either fully into memory, or into some configurable ratio of memory & swap. When it reads from an InputStream, it consumes the whole stream. So the inability to do random access is a limitation of PDFBox, unfortunately.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cudevmaxwell
Comment options

Answer selected by cudevmaxwell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants