PDFGenerationAPI can not generate pdf if contains too many/large attachments

Melanie Selman1
Tera Contributor

Hello everyone,

We are currently using the PDFGenerationAPI for generating pdf files in our instance.  We generate custom pdfs where we are including photos, that are attached and uploaded by the user.  We are encountering a problem, where when we attach too many photos (15+) or mutilple photos of too high quality, the pdf generation does not work.  

We have tried downscaling the photos so they take up less MB, and when we do this, the pdf generation works. We have looked into compressing photos when they are attached, but it seems like it is a bad idea to do photo compression directly in the browser, since this can be very performance heavy.

My question is if anyone else have encountered this problem, or if anyone has any ideas to how to avoid running into this issue where the pdf generation does not work? It is important for us that it is still possible for the user to upload a good amount of photos.

Thank you. 

1 REPLY 1

Vincenzo Basile
Tera Expert

Hi,
How do you made the"downscaling" the images ?