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.

Fri Mar 08, 2019 1:35 pm

please help i am getting this error while PDF merge.

ANILSAHU
 
Posts: 3
Joined: Wed Jan 30, 2019 11:37 am

Mon Mar 11, 2019 2:07 am

Hi,

Thanks for your inquiry and sorry for late reply as weekend.
If you were using an old version, I would suggest that you download the latest version (Spire.Office Platinum (DLL Only) Version:4.2.0) and have a try. If the issue still exists after trying, please provide your PDF files that you used to merge to help us further investigate your issue. You could send them to us via email ([email protected]). Thanks in advance.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1377
Joined: Tue Sep 27, 2016 1:06 am

Mon Mar 11, 2019 10:42 am

Hi Nina,
I am using latest dll SPIRE 4.2 only. We can not share file due to security issues.
When i am appending memory stream for merging getting the error.

PDFDocument.Savestream(memorystream).

90 percent of files i am not getting error but for few i am getting same error. Let me know what this error implies so that i can troubleshoot more.

ANILSAHU
 
Posts: 3
Joined: Wed Jan 30, 2019 11:37 am

Tue Mar 12, 2019 2:32 am

Dear Anil,

Thanks for your feedback.
Did you try the following new method to do merge? Did the issue still happen?
I did a simulation of your case but didn't face the issue you mentioned. Different PDF documents have different structures and elements. Maybe your PDF documents contain special elements or structures which cause the issue. But our testing library does not have documents with the same structures yet, so we haven't reproduced your issue. We are so sorry for the inconvenience caused. We need your documents to locate the root of your issue quickly and accurately. Don't worry, we promise to keep your documents confidential and we will not use them for any other purpose. Besides, you could also remove the security data of your document as long as the modified documents can reproduce your issue and send them to our email ([email protected]). Thanks for your cooperation.
Code: Select all
String[] files = new String[] { filepath1, filepath2 };
PdfDocumentBase doc = PdfDocument.MergeFiles(files);
MemoryStream mem = new MemoryStream();
doc.Save(mem);

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1377
Joined: Tue Sep 27, 2016 1:06 am

Fri Mar 15, 2019 6:44 am

Hi,

Greetings from E-iceblue.
How is your issue now?
Your feedback will be greatly appreciated.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1377
Joined: Tue Sep 27, 2016 1:06 am

Return to Spire.PDF

cron