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?
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