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.

Fri Oct 21, 2022 3:40 pm

We are using Spire.doc for .NET (version 9.10.9 for .Net Framework 4.0) to convert docx files to pdf.

Below the snippet used:

Spire.Doc.Document doc = new Spire.Doc.Document(pathDocx, Spire.Doc.FileFormat.Docx);
//Save to .docx file
doc.SaveToFile(pathPdf, Spire.Doc.FileFormat.PDF);


We found a strange behavior converting a word document having different header and footer in first page.
In particular in produced PDF File, text has been moved up.

We tried to change the word document applying same header and footer in all pages and conversion worked fine.

In attachments you'll find original docx file and produced PDF to show the issue (please check 1st and 2nd page)
PROVA.zip
Hi support

Could you please help us to solve this issue?

luca.porqueddu
 
Posts: 8
Joined: Tue Nov 09, 2021 10:17 am

Mon Oct 24, 2022 3:49 am

Hello,

Thanks for your inquiry.
Yes, I tested with the latest Version of Spire.Doc Pack(hot fix) Version:10.10.4, and I did find that text content was moving around. This issue has been logged into our tracking system with the ticket SPIREDOC-8630. Our Dev team will do more investigations to fix it. Once there is any update, I will inform you asap.
However, my result document is somewhat different from the one you provided. The header and footer of the first page is the same as the word document shows. I have attached my result document for your reference. Please use the latest version to test again. If there are still problems after testing, please provide us with your testing environment (E.g.Windows 10,x64,RAM:16GB) as well as your region setting (E.g. China, Chinese) for our further investigation.

Sincerely,
Simple
E-iceblue support team
User avatar

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

Mon Oct 24, 2022 1:30 pm

Hi Support

We tried suggested test with newer Spire.doc version (10.10.4) but obtaining same result.

About the additional difference in provided sample, you should consider that in our application after WORD files are converted to PDF an additional QR code is added in produced PDF but we observed that the issue is happening also without apply such QR Code.

Find in attachments new test evidence without QR Code.
Test_With_Spire10.4.zip


Waiting for your feedback
Thanks & Regards

luca.porqueddu
 
Posts: 8
Joined: Tue Nov 09, 2021 10:17 am

Tue Oct 25, 2022 3:13 am

Hello,

Thanks for your more information.
Yes, without QR Code, we got the same result as yours. In any case, our Dev team is doing more investigations now. Once there is any update, I will inform you asap.

Sincerely,
Simple
E-iceblue support team
User avatar

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

Thu Oct 27, 2022 11:13 am

Good Morning Support

We had a new case in PROD Environment this morning.

This time the error is really impacting; in fact WORD File contains 2 pages and it has been converted in a PDF File containing 17 pages.

Please check attachments with origina WORD File and produced PDF.
New Evidence of WORD to PDF conversion Error_27102022.zip


Waiting for your kind feedback

Thanks & Regards

luca.porqueddu
 
Posts: 8
Joined: Tue Nov 09, 2021 10:17 am

Fri Oct 28, 2022 3:20 am

Hello,

Thanks for your inquiry.
You didn't upgrade to the latest Spire.Doc Pack(hot fix) Version:10.10.4, right? I did not reproduce your problem when testing this version. It converts well to a PDF document, and I have attached my results document for your reference. If there are still problems after using our latest version, please provide us with your testing environment (E.g.Windows 10,x64, RAM:16GB) as well as your region setting (E.g. China, Chinese) for our further investigation.

Sincerely,
Simple
E-iceblue support team
User avatar

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

Fri Oct 28, 2022 3:19 pm

Hi Support

1) Which is the version that you are referring? We downloaded 10.10.4 from Nuget in Visual Studio but issue is still present (see attachments)
2) Using provided link for HotFixed version of 10.10.4 it's not clear which is the hot fixed version, we see

Spire.Doc Pack Version:10.7
Spire.Doc Pack(hot fix) Version:10.10.4

We tried using also the second one, downloading the zip file package and installing manually but we are obtaining same result.

Please consider that our application is using .Net Framework 4.5.2
Issue is observed in Win Server 2016 X64
Region Settings are ENG(United States)
new_sample_10.10.4_Net452.zip

luca.porqueddu
 
Posts: 8
Joined: Tue Nov 09, 2021 10:17 am

Mon Oct 31, 2022 8:20 am

Hello,

Thanks for your feedback.
The issue is because that you didn't use the valid license. We have checked our records and found your purchased license is still valid for the latest Version:10.10.4. Please test with using your license. If you have any further questions, please feel free to contact us.

Sincerely,
Simple
E-iceblue support team
User avatar

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

Wed Nov 02, 2022 8:07 am

Good Morning Support

We retried as per your suggestion to upgrade our solution to Spire.doc 10.10.4 and also using active licensing and effectively it worked correctly.

We released an updated package to refer newer spire.doc version and we are monitoring the same in PRODUCTION Environment.

We'll update this thread if further cases will be found.

Thanks for all your support
Best Regards

luca.porqueddu
 
Posts: 8
Joined: Tue Nov 09, 2021 10:17 am

Wed Nov 02, 2022 8:24 am

Hello,

Thanks for your feedback.
I'm glad to hear that you have solved the problem. If you have any problem using our products, please feel free to contact us.

Sincerely,
Simple
E-iceblue support team
User avatar

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

Thu Feb 02, 2023 11:33 am

Good Morning

Sorry to say that we are facing again same issue despite applied fix.

We checked and we are using the library Spire.Doc 10.10.4.0 with License but the result is the one shown in attachments.

Conv- 6403 APP- 01.zip


We uploaded a 3 page doc file and resulted pdf contains 4 pages.

Could you please verify and let us know if a fix is possible from your side?

Waiting for your kind feedback

Thanks & Regards

luca.porqueddu
 
Posts: 8
Joined: Tue Nov 09, 2021 10:17 am

Fri Feb 03, 2023 3:22 am

Hi,

Thanks for your inquiry.
I did some tests with your code and sample file, using your version and latest Spire.Doc Pack (hot fix) version: 11.1.4, I reproduced your issue, the result pdf file contained an extra page. I have logged this issue into our bug tracking system with the ticket number SPIREDOC-9023, our dev team will investigate and fix it, sorry for the inconvenience caused. Once the issue is fixed, I will inform you asap.

Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Fri Feb 03, 2023 8:02 am

Thank you for your response.

We'll wait for your feedback.

Thanks & Regards

luca.porqueddu
 
Posts: 8
Joined: Tue Nov 09, 2021 10:17 am

Fri Feb 03, 2023 9:32 am

Hi,

Thanks for your understanding.
Once the issue is fixed, I will inform you asap. Sorry for the inconvenience caused again.

Sincerely,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Thu Feb 09, 2023 4:12 pm

Good Afternoon

Could you please let us know a possible resolution date for this issue?

Sorry to ask, but client which bought licenses needs to know a date.

Waiting for your kind feedback

Thanks & Regards

luca.porqueddu
 
Posts: 8
Joined: Tue Nov 09, 2021 10:17 am

Return to Spire.Doc