PDFs getting corrupted when we try to merge PDFs bigger than 5MB

PDFs getting corrupted when we try to merge PDFs bigger than 5MB.

I’m not sure what we are doing wrong. Since we are passing local URL to initiate viewer. Can you please explain what is the correct way to use merge when there are PDFs bigger than 5MB

Hi there,

Thank you for contacting pdf.js express forums,

Please take a look at the maximum memory usage here at the bottom of the page:
https://pdfjs.express/api/utils/index.html

You would need to use the API to set the document as a URL if over 5.5MB.

Best regards,
Kevin Kim

1 Like