Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Tue Nov 01, 2022 4:58 pm

We have issue with convert doc to pdf.
After converting pdf file has some missed information.

Document SPD = new Document("D:\\12050288_13-34-48.doc");
SPD.SaveToFile("D:\\12050288_13-34-48.pdf", FileFormat.PDF);


I will send document by email.
We are using latest version 7.10.0

sserra
 
Posts: 76
Joined: Tue Jun 13, 2017 4:03 pm

Wed Nov 02, 2022 2:53 am

Hello,

Thanks for your inquiry.
I did reproduce the behavior you mentioned. I have logged this issue into our tracking system with the ticket SPIREDOC-8709. Our Dev team will do more investigations. Once there is any update, I will inform you asap. Sorry for the inconvenience caused.

Sincerely,
Simple
E-iceblue support team
User avatar

Simple.Li
 
Posts: 248
Joined: Fri Jul 01, 2022 2:33 am

Tue Nov 08, 2022 7:28 am

Hello,

We have received your new file via e-mail.
I used Spire.Doc 7.10.0 that you used and the latest version 10.11.0 to convert your new file(12315415_09-30-56.docx) to pdf file respectively, but I didn't reproduce your issue of missing content. My test envirement is windows10 64bit and the platform of my project is .NET Framework 4.8.
Do you have any differences with my test case?

Here is my test code:
Code: Select all
//Create word document
Document document = new Document();
document.LoadFromFile(@"12315415_09-30-56.docx");
//Save the document to a PDF file.
document.SaveToFile("12315415_09-30-56.pdf", FileFormat.PDF);


Sincerely,
Brand
E-iceblue support team

Brand.Luo
 
Posts: 4
Joined: Mon Oct 31, 2022 6:15 am

Tue Nov 08, 2022 4:26 pm

Hello
please try this code

Document SPD = new Document("D:\\12315415_09-30-56.docx");

foreach (Section item in SPD.Sections)
{
using (Document newWord = new Document())
{
Section Section = item.Clone();
newWord.Sections.Add(Section);
newWord.SaveToFile("D:\\12315415_09-30-56.pdf", FileFormat.PDF);
}
}

sserra
 
Posts: 76
Joined: Tue Jun 13, 2017 4:03 pm

Wed Nov 09, 2022 3:25 am

Hello,

Thank you for feedback.
I tested your code, but I still didn't reproduce your issue. The converted pdf's content is consistent with the original docx.I will send my test project via e-mail. Please run it on your side to see how my project is going.
If there is any difference, please let us know. Looking forward to your reply.

Sincerely,
Brand
E-iceblue support team

Brand.Luo
 
Posts: 4
Joined: Mon Oct 31, 2022 6:15 am

Wed Nov 09, 2022 6:29 pm

Hello
we are using diff versions.
please look our https://bit.ly/3EhJMfV

sserra
 
Posts: 76
Joined: Tue Jun 13, 2017 4:03 pm

Thu Nov 10, 2022 7:19 am

Hello,

Thanks for sharing version info.
I have reproduced your problem and logged it into our bug tracking system with the ticket SPIREDOC-8770.
Our dev team will investigate this issue, once there is any good news, I will inform you. Apologize for the inconvenience.

Sincerely,
Brand
E-iceblue support team

Brand.Luo
 
Posts: 4
Joined: Mon Oct 31, 2022 6:15 am

Fri Dec 02, 2022 9:57 am

Hi,

Thanks for your patient waiting. I'm glad to tell you that SPIREDOC-8709 has been solved. Welcome to download and test new Spire.Office Platinum(Hotfix) Version:7.12.0.
Our website link: https://www.e-iceblue.com/Download/download-office-for-net-now.html
Nuget links:
https://www.nuget.org/packages/Spire.Office/7.12.0
https://www.nuget.org/packages/Spire.Officefor.NETStandard/7.12.0

SPIREDOC-8770 is under fixing. Once it is fixed, we will inform you.

Sincerely,
Amy
E-iceblue support team
User avatar

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

Mon Dec 05, 2022 8:16 pm

Hello
I downloaded new version, but problem is not fixed
for test, you can use same files and code that you have from me before


thank you

sserra
 
Posts: 76
Joined: Tue Jun 13, 2017 4:03 pm

Tue Dec 06, 2022 3:14 am

Hello,

Thanks for your feedback.
For the issue with SPIREDOC-8709, I created a console project with .NetFramework4.8 and used the latest version of Spire.Office 7.12.0 to test your document, I found the issue of missing data has been fixed, I attached the result pdf file for your reference.

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Wed Apr 12, 2023 8:26 am

Hello,

Thanks for your patience!
Glad to inform you that we just released Spire.Office 8.4.0 which fixes the issue with SPIREDOC-8770.
Please download the new version from the following links to test.

Website download link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget download link: https://www.nuget.org/packages/Spire.Office/8.4.0

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Return to Spire.Doc

cron