On 2021/12/16 19:13:06 Tilman Hausherr wrote:
For thumbnails, a good strategy is to use 72dpi or above, then resize the result image so it fits into target width / height.
FYI we did this also. But some pdf in the wild are very strange : they contain very large pages (like 10x15 meters or so) : this strategy fails in these cases (either OutOfMemoryError, or negative array size when trying to allocate the image) By now we consider page size (cropbox) and calculate the dpi accordingly in order to get the right rendered image size MM --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org