We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

PDF attachments size limit

Hi,
I am trying to add attachment to existed PDF document:

                PdfLoadedDocument doc1 = new PdfLoadedDocument(tempFile);
                      
                if (doc1.Attachments == null)
                    doc1.CreateAttachment();

                PdfAttachment attachment = new PdfAttachment(attachmentPath);
                attachment.ModificationDate = DateTime.Now;
                attachment.Description = info.Name;
                attachment.MimeType = "application/txt";

                doc1.Attachments.Add(attachment);
                doc1.Save(newName);

                doc1.Close();

It works fine for small attachments, but it gives "Exception of type 'System.OutOfMemoryException' was thrown." for 200Mb attachments.
Do you have any attachments size limit? How we can increase this size?


3 Replies

KK Karthik Krishnaraj Syncfusion Team August 6, 2015 05:21 AM UTC

Hi Oleg,
Thank you for using syncfusion products,
We are analyzing on your issue with “Out of memory exception occurs while attachement file size is 200 MB” and suspect this to be a defect. We will update more details regarding this issue on August 10, 2015.
Thanks,
Karthik.


OG Oleg Gnetulia August 11, 2015 08:04 AM UTC

Hi Karthik,

Do you have any updates? It's hard to believe that I am first Synsfusion user who faced with pdf attachments file size limitation issue.
I double checked, I have OutOfMemoryException event with files more that 100 MB.   

Thank you.


KK Karthik Krishnaraj Syncfusion Team August 11, 2015 01:20 PM UTC

Hi Oleg,
We were able to reproduce the problem and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Please let me know if you have any questions.
Thanks,
Karthik.

Loader.
Live Chat Icon For mobile
Up arrow icon