Hi,
At least two of the fonts on page 57 have an uncompressed size of 8 GB
?! For one of them, the value becomes a negative when casting to int.
I can catch the negative value, but I'm unable to decide what maximum
size a font should be.
Tilman
On 22.04.2025 11:41, Brangs, Erik wrote:
Hi,
using PDFBox 3.0.4 to extract text from the PDF from
https://d-nb.info/1349431796/34 fails with a NegativeArraySizeException after
using up multiple GBs of memory. I used -Xmx12G because the extraction failed
with an OutOfMemoryError for -Xmx6G.
The problem also appears with 4.0.0-SNAPSHOT.
Is this a bug in PDFBox or is the PDF broken?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org