PNG Picture in DOCX is not convert to PDF

Hi Aspose team,

I have document in docx or rtf format and i will convert in PDF format. In the document is a picture in PNG format. In the PDF ist this picture a red cross. A JPG Picture is ok.

I have Aspose.Word V17.8

Can you help.

Best regards,

SteffenTEST.PDF (43.6 KB)

@rassekst,

Thanks for your inquiry. Please ZIP and attach your input Word document here for testing. Please also share your working environment e.g. operating system and .NET Framework version (or Java version). We will investigate the issue on our side and provide you more information.

Here ist a ZIP with the document.My working environment is MS WIn 2012 R2 and WIN10. Framwork is V4.

test.zip (42.8 KB)

Best regards,

Steffen

@rassekst,

After an initial test with Aspose.Words for .NET 17.10, we were unable to reproduce this issue on our end during rendering your “test.docx” to PDF (please see output 17.10.pdf (54.4 KB)). We would suggest you please install latest version of Aspose.Words for .NET NuGet Package. Please also see the following documentation:

Installing Aspose.Words for .NET through NuGet

We used the following code on our end for testing:

Document doc = new Document("test.docx");

PdfSaveOptions opts = new PdfSaveOptions();
opts.Compliance = PdfCompliance.PdfA1a;

doc.Save("17.10.pdf", opts);

I have use the latest version 17.10. The result is the same. But I found the reason. It is the PDFImageColorSpaceExportMode.SimpleCmyk command. If I remove this everything is ok.
I suspected that this option reduces the size of images.

Thanks for your help.

Steffen

@rassekst,

Thanks for sharing the detail. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-16096. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@rassekst,
The issues you have found earlier (filed as WORDSNET-16096) have been fixed in this Aspose.Words for .NET 17.12 update and this Aspose.Words for Java 17.12 update.
Please also check the following articles: