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 Nov 22, 2024 10:24 am

Hello,

We are using Spire.Office version 7.7.6 for .Net into a console App using 4.7 Framework.
My tests are made on a win10 PC.
I am converting a .docx file into a pdf file.
The docx includes an image in color.
The converted pdf file includes this image in an improper way.
First it is in white & black instead of color.
And second, it has been applied shrunk and repeated, cf screenshots.

The code is as follows:

Code: Select all
    Dim doc As New Document()
    doc.LoadFromFile(myPath)
     -- Code replacing text into the word file
    doc.SaveToFile(documentAGenerer.CheminDestination, FileFormat.Docx)


In case it matters, the image is in the headers of the docx document.

Do you have any idea if this can get fixed?

.Docx source image:
2024 11 Spire1.PNG


.pdf result after convertion:
2024 11 Spire2.PNG



Thx in advance

A.D.
Last edited by arde_corhofi on Fri Nov 22, 2024 10:35 am, edited 1 time in total.

arde_corhofi
 
Posts: 3
Joined: Fri Nov 22, 2024 9:58 am

Fri Nov 22, 2024 10:26 am

The result does not appear properly in the original post :
2024 11 Spire2.PNG

arde_corhofi
 
Posts: 3
Joined: Fri Nov 22, 2024 9:58 am

Fri Nov 22, 2024 10:42 am

arde_corhofi wrote:In case it matters, the image is in the headers of the docx document.


Actually, that should not matter, as a test, I placed the image out of the headers, into the body of the docx file and the result is the same.

arde_corhofi
 
Posts: 3
Joined: Fri Nov 22, 2024 9:58 am

Mon Nov 25, 2024 2:23 am

Hi,

Thank you for your message and sorry to reply late for weekend.
The latest version of Spire.Office is 9.10.0. Since the new version includes more fixes, I recommend that you test with the latest version. If the issue persists in the latest version, please provide your test file for us to investigate and reproduce the problem. Thank you very much.

Spire.Office 9.10.0
website download: https://www.e-iceblue.com/Download/download-office-for-net-now.html
nuget download: https://www.nuget.org/packages/Spire.Office

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 455
Joined: Mon Nov 07, 2022 8:10 am

Return to Spire.Doc