Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon May 22, 2017 9:45 am

Hello,

I am Getting System outofMemory exception while merging Two large PDFs(around 80 MB each) , It is working fine for small size PDFs like 30 to 40 MB.


Can anyone help on this ?

Thank you,
Devang

devang.patel@altegrahealth.com
 
Posts: 8
Joined: Mon May 30, 2016 11:20 am

Mon May 22, 2017 10:03 am

Hello,

Thanks for your inquiry.
To help us investigate the issue, could you please send your pdf documents to us via email(support@e-iceblue.com)?

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Mon May 22, 2017 10:11 am

Hello,

Actually I can't share that PDFs due to some restriction but you can take any 2 PDFs which is having size of around 80 to 90 MB.

Thank you,
Devang Patel

devang.patel@altegrahealth.com
 
Posts: 8
Joined: Mon May 30, 2016 11:20 am

Tue May 23, 2017 2:42 am

Hello,

Thanks for your reply.
I just tested two pdfs which are all around 90M, and everything works well on my side when merging them. The system information of my testing computer is Win7+64bit+4G RAM. Concerning your case, I suggest you download our latest version(Spire.PDF Pack(Hot Fix) Version:3.9.82) to have a try at first. If the issue still exists, could you share your documents and computer information with us? We will keep your documents confidential and you can also replace the private data as long as the issue can be reproduced, because it's hard to locate the issue and give you a corresponding solution without your documents.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Wed May 24, 2017 9:23 am

Hi Jane,

Can you share the code (if you can) how you are merging the PDFs into one PDF ?

FYI, our configuration is Windows Server 2012 R2 64 bit & 4 GB RAM.

Thank you,
Devang

devang.patel@altegrahealth.com
 
Posts: 8
Joined: Mon May 30, 2016 11:20 am

Wed May 24, 2017 10:12 am

Hello,

Thanks for your reply.
I just made a test under the environment of Server 2012 R2 64 bit and the result seemed good. Please refer to the code below:
Code: Select all
string[] files = new string[] {"pdf1.pdf","pdf2.pdf" };
            PdfDocumentBase page = PdfDocument.MergeFiles(files);
            page.Save("mergePdfResult1.pdf");

Welcome to write back if you need further assistance.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.PDF

cron