PDFGenerationAPI can not generate pdf if contains too many/large attachments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2023 03:41 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2025 07:30 AM
Hi,
How do you made the"downscaling" the images ?