Hi,

I am using pdfbox library version 2.0.17 and attaching/embedding files to pdf. 
The problem is while attaching large files, it give java heap space issue.

Attache files(i. e. docs) size are 300mb, 400mb and 500mb.

Sample code link: 
https://drive.google.com/open?id=1fOJHvZN_9M8CnS-0aQOtFxQ5Xzg2DMng

Note: Above static class able to generate the PDF with attachments but same 
code is not working in web application.

Web Application running with 2GB heap space parameter.

Could some one help me out for the issue.

Regards,
Dhaval

Reply via email to