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.

Thu Oct 08, 2015 3:19 pm

Hello,
We have license of Spire PDF and we are trying to merge following PDF file into one.
PDF 1 size --> 307 MB (10614 Pages)
PDF 2 size --> 237 MB (9434 pages)
PDF 3 size --> 128 MB (6285 pages)

it is taking taking to much time to merge all this files. We have waited for 15 min and process not completed, so we have to kill that process.
can you please let know how big file we can merge? How big files you have tested so far?

Please find below code for merging
inputDocument = new Spire.Pdf.PdfDocument(file);
outputDocument.AppendPage(inputDocument);

Please let us know if there is any optimal way to merge these files.
We have also downloaded newer version of Spire PDF DLL ( V 3.5.0.5040)

Thanks in advance
Sandip

sandip.jain
 
Posts: 19
Joined: Mon Feb 16, 2015 8:45 pm

Fri Oct 09, 2015 3:51 am

Dear Sandip,

Thanks for your inquiry.
Please try the below solution to merge your files. At present the latest version is Spire.PDF Pack(Hot Fix) Version:3.5.80, please try it.
Code: Select all
String[] files = new String[] { "Sample1.pdf", "Sample2.pdf", "Sample3.pdf" };         
   string outputFile = "result.pdf";
   PdfDocumentBase doc = PdfDocument.MergeFiles(files);
   doc.Save(outputFile, FileFormat.PDF);


Best Regards,
Amy
E-iceblue support team
User avatar

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

Fri Oct 09, 2015 8:19 am

Hello,
Thanks for your reply. but the solution you have provided is having the same issue, waited for 30 min and still process is going on.
I have also downloaded latest spire pdf version and no resolution.
Could you please try to reproduce the same at your end also provide if any optimum way to do this. we require to have quick solution for this ASAP. Process consume 100 % CUP.

Thanks once again,
Sandip

sandip.jain
 
Posts: 19
Joined: Mon Feb 16, 2015 8:45 pm

Fri Oct 09, 2015 8:26 am

Dear Sandip,

Thanks for your reply. Sorry for the inconvenience caused by issue.
To help us reproduce your issue soon and resolve it , please send your pdf files to amy.zhao@e-iceblue.com or support@e-iceblue.com, and also tell us your system environment.
Thank you.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Fri Oct 09, 2015 8:54 am

Hello again,

We can not share this file as these files are medical records of patients.
Environment details

C# application framework 4.5
Windows 7.0 machine with 8 GB of ram.
Please let us know what other environment related information required.

Thanks,
Sandip

sandip.jain
 
Posts: 19
Joined: Mon Feb 16, 2015 8:45 pm

Sat Oct 10, 2015 2:16 am

Dear Sandip,

Thanks for your providing.
I have posted your issue to our dev team. We will look into it and let you know if we can improve this speed.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Tue Oct 13, 2015 11:49 am

Hello,

Any update on this issue? we are evaluating some other DLL for merging PDF files and all above mention files are process within 4 minute with out any error while Spire is taking for ever.
Please find below details link for the same
https://www.pdf-tools.com/pdf/pdf-merge ... ulate.aspx

Please provide details ASAP.

sandip.jain
 
Posts: 19
Joined: Mon Feb 16, 2015 8:45 pm

Wed Oct 14, 2015 7:37 am

Hi,

Thanks for your inquiry.
Our dev team is doing the investigation for the issue. We will give you some update tomorrow.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Thu Oct 15, 2015 8:15 am

Hi,

Our dev team made an adjustment for the code of the merging function yesterday, today our test team did a test, but the results were not good, just raised a few minutes. Our dev team will continue to investigate this issue to find better solution to effectively shorten the running time.
Thanks for your cooperation and understanding.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Fri Oct 16, 2015 11:35 am

Hello,
Same thing is also happening to XPS to PDF conversion also.
Kindly check this functions as well.
Can you please let us know any estimated time for resolution of these issues?
Thanks in Advance
Sandip

sandip.jain
 
Posts: 19
Joined: Mon Feb 16, 2015 8:45 pm

Mon Oct 19, 2015 7:18 am

Hi,

We will do our best to give you new package tomorrow.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Tue Oct 20, 2015 8:54 am

Hi,

Sorry that the new package is under testing now, it may not be able to be released today. We will tell you at once when it is ok.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Tue Oct 20, 2015 9:37 am

Hello,
We are doing performance monitoring using JetBrains tool and we have found that certain functionality of Spire is taking long time. Please find attach screen reference for the same.
Please provide update ASAP or we need to buy other license for the same.

sandip.jain
 
Posts: 19
Joined: Mon Feb 16, 2015 8:45 pm

Wed Oct 21, 2015 7:54 am

Hi,

Please download and test new package.
http://www.e-iceblue.com/downloads/Temp ... .5.117.zip
The new package may not be able to reduce to 4 minutes for your large pdf files. If you just want to combine the multiple documents, we suggest you to choose the way to add attachments, it is very quick.
Sample code:
Code: Select all
PdfDocument doc = new PdfDocument();
            doc.LoadFromFile("..\\..\\test1.pdf");
            string attachmentFilename = "..\\..\\test2.pdf";
            var attachment = new PdfAttachment(attachmentFilename);
            attachment.Data = File.ReadAllBytes(attachmentFilename);
            attachment.Description = "Test2.pdf";
            attachment.MimeType = "application/pdf";
            doc.Attachments.Add(attachment);
            doc.SaveToFile("attachment.pdf");


Best Regards,
Amy
E-iceblue support team
User avatar

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

Fri Oct 23, 2015 7:52 am

Hi,

Have you tested new package? How did it work? How about the way to add attachments?
Thanks for your feedback.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Return to Spire.PDF