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.

Wed May 24, 2023 8:07 am

Hi..

When saving a docx file as a pdf, a background appears on the picture.
Attached file was worked as below.

Code: Select all
Document doc = new Document();
doc.LoadFromFile("test2.docx");
doc.SaveToFile("test2.pdf", FileFormat.PDF);


After saving as PDF, each photo has a gray background that was not there before.
This issue does not occur when the file is directly opened in MS Word and saved as PDF.
What should I do?


------
Upon further checking, it seems that the contrast of the Format of each photo does not apply.
Is it just a bug?.

Sungkyu_min
 
Posts: 36
Joined: Fri Jan 07, 2022 5:53 am

Wed May 24, 2023 9:44 am

Hi,

Thanks for your feedback.
I did a test with the document you provided, using the latest Spire.Doc_11.5.6, but I did not reproduce this issue, I have attached my test result for your reference. Please upgrade to the latest version and have a test, if the issue still exists, please share us with the following messages. Thanks for your assistance.
1) your application type, such as Console App .NET Framework 4.8.
2) your test environment, such as OS info (E.g., Windows 10 64 bit) and region setting (E.g., China, Chinese).

Best regards,
Triste
E-iceblue support team
User avatar

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

Thu May 25, 2023 12:09 am

Thank you for answer.

I thought it was a version problem, so I tested with the latest version.
However, the latest version of spire.office until yesterday was 8.4.1,
The version of the doc included in office was 11.4.

However, when I checked now, the latest version of spire.office was 8.5, and when I tried again after updating it, this problem did not occur.

thank you!.

Sungkyu_min
 
Posts: 36
Joined: Fri Jan 07, 2022 5:53 am

Thu May 25, 2023 1:30 am

Hi,

Thanks for your feedback.
Glad to hear that this issue has been solved. If you have any other questions or concerns, just feel free to contact us.

Have a nice day! :D

Best regards,
Triste
E-iceblue support team
User avatar

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

Return to Spire.Doc