Am 03.02.2020 um 09:28 schrieb Oliver Breidenbach:
Hi, we are using pdfbox for creating previews of uploaded pdf files. Just redering a image of the first page. This is working quite well for 99 % of the uploaded files. But sometimes the pdfs consists just of one page but with kind of a map on it. I guess this map consists of thousands or millions of objects. Such files eat up a lot of memory and take a long time. Has pdfbox the possibility to limit the memory consumption and/or the rendering time?
No... if we'd support interrupts, we would have to change the whole API to throw this, because InterruptedException is a checked exception.
Re memory... it just grows until there's nothing left :-( Tilman
In our case it would be sufficient if the rendering would be interrupted with an exception. We could than use a default preview image. Best regards, Oliver
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org