I am adding file attachments to PDF reports created using Aspose.Pdf. Is there a theoretical limit (proposed by Aspose or Adobe for PDF standard), to the total size of attachments that can be embedded in a Pdf.
For example if I have 30 attachments of 4MB each it would result in a gigantic 120MB file. Is this allowed? Is there an upper limit to number of atttachments and/or size of attachments?
As per our observations, Aspose.Pdf for .NET 4.6.0 is capable of attaching large size documents as attachment. We have tested the scenario in following two cases.
I have tried adding 5.46MB file for 60 times while generating a PDF document and the resultant PDF of size 350MB is properly being generated in 15 seconds without any issue.
I have tried attaching a large sized 26.1 MB file for 15 times as an attachment and as per my observations, the resultant file of size 419MB is properly being generated in 22 Seconds without any issue.
Besides attachment case, Aspose.Pdf for .NET has the capability to generate a PDF document of size around 1.3GB (file main contain text and tables). Please try using our product and in case you face any problem or you have any further query, please feel free to contact.
You can download the latest release version of Aspose.Pdf for .NET 4.6.0 from here.
PS, We have also observed that when generating a PDF document with attachments (number count or file size) greater than above stated information, System.OutOfMemoryException is being generated. For the sake of correction, I have logged this problem as PDFNET-20415 in our issue tracking system. We will further look into the details of this problem and will keep you updated on the status of correction.
Thanks Nayyar for your response here as well has the live response.
Since it is throwing a System Out of Memory Exception, I am guessing it could be related to amount of System Resources available. Could you please share the amount of RAM on the system you tested? I’ll do a check for the same on my side and post my findings.
Aspose.Pdf for .NET do not have any limitations in terms of the size of input PDF file but sometimes due to the structure and complexity of the input file, the API may encounter any issue. So in order for us to investigate and figure out the problem which you are facing, we request you to please share the input PDF file or some code snippet which can help us in reproducing such large document. In order to share the file, you may consider uploading it to some free file sharer and share the link with us.
It is good to know that your issue has been resolved. Please keep using our API and in case if you face any issue please feel free to contact us. We will be more than happy to extend our support.
Best Regards,
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.