Regarding memory consumption, we've solved this problem by using the MemoryUsageSetting.setupTempFileOnly() setting in most places. For rendering, we use PDFium, which is blazing fast.
Regards, Constantine -- There is a computer disease that anybody who works with computers knows about. It's a very serious disease and it interferes completely with the work. The trouble with computers is that you 'play' with them! - Richard P. Feynman On Mon, Feb 3, 2020 at 10:28 AM Oliver Breidenbach <olly.breidenb...@googlemail.com.invalid> wrote: > 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 >