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.

Wed Jan 13, 2016 6:44 am

Hi e-iceblue team,

I am using pro version of Spire.Pdf for .NET library and already purchased the license. On production environment, the MergeFiles method is unable to merge pdf files that has lots of pages (414 pages).

Note:- I have invoked MergeFiles method with one pdf file having 414 pages.

Regards
Raj

[email protected]
 
Posts: 5
Joined: Fri Oct 30, 2015 12:00 pm

Wed Jan 13, 2016 7:16 am

Hi,

Thanks for your posting.
Our Spire.PDF Commercial Edition has no limitation for pdf page count. What is the error you encountered while merging files? Would you please provide us your pdf document for investigation? My e-mail is [email protected]. And please tell us what is your e-mail that purchased license.
Thank you.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3011
Joined: Wed Jun 27, 2012 8:50 am

Thu Jan 14, 2016 1:03 pm

Hi Amy,

I uploaded pdf document using chrome browser and application uses jquery ajax, so ajax request gets failed. However I didn't get any exact error message on server side as well. The mergeFile method took too much time (more than 5 minutes).

I will upload pdf documents and I provided license purchased email to [email protected].

Best Regards,
Raj

[email protected]
 
Posts: 5
Joined: Fri Oct 30, 2015 12:00 pm

Fri Jan 15, 2016 6:48 am

Hi,

Thanks for you providing.
I saved your sample as a new pdf document with same pages and tried to merge the new document and your sample two times using two merging method as below, but all worked ok. Would you please tell us your system environments?
On my end Merging1 took 4 minutes and Merging2 took 6 minutes. What is your code? How many pdf files you merge to take 5 minutes? If you also used another pdf document except programming.pdf, please also send it to us for investigation. Thank you.

Code: Select all
 string[] files = { "..\\..\\Input\\programming_new.pdf", "..\\..\\Input\\programming.pdf" };
 public  void Merging1(string[] files,string result)
        {
            PdfDocument doc1=new PdfDocument();
            doc1.LoadFromFile(files[0]);
            PdfDocument doc2 = new PdfDocument();
            doc2.LoadFromFile(files[1]);
            doc1.AppendPage(doc2);
            doc1.SaveToFile(result);
        }
        public  void Merging2(string[] files, string result)
        {
            PdfDocumentBase doc1 = PdfDocument.MergeFiles(files);

            doc1.Save(result, FileFormat.PDF);
        }


Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3011
Joined: Wed Jun 27, 2012 8:50 am

Fri Jan 15, 2016 1:25 pm

Thanks for giving two different solutions to merge pdf document.

Previously, I had implemented similar to Merging2 code block and now I changed similar to Merging1 code block. It works for me smoothly.

Thanks
Raj

[email protected]
 
Posts: 5
Joined: Fri Oct 30, 2015 12:00 pm

Mon Jan 18, 2016 1:46 am

Hi,

Thanks for your feedback.
I am glad that your issue has been resolved.
Welcome to write to us again for further problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3011
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF