PDF processing should not trust the media box size
When the mediabox size is incorrectly set on the uploaded PDF, zesje (specifically extract_image_wand
) tries to generate a yuge image (150937677 pixels in the example below). We shouldn't rely on the mediabox size when extracting an image using wand, and rather only use relative sizes.
Original description:
Hi Zesje team,
We've used the new features regarding image based exams. There was one pdf (too big to be attached, can send by email or other way if necessary) that was apparently generated using non-standard page sizes which causes the 'processing' step to hang (it's been going on for 6 hours+ now). Is there a time-out or way to stop this processing? And could you build a check for the pdf page size?
Kind regards,
Matthijs
Edited by Anton Akhmerov