Transparent images in aspose words

Hi

In aspose words when you load a document with transparent images if you try to print or convert to pdf the images become corrupted. also, if you use aspose to insert those transparent images programmatically as shapes the transparent background becomes black.

Please checkout the attached pics.

Hi Abdulrahman,

Thanks for your inquiry. In case you are using an older version of Aspose.Words, I would suggest you please upgrade to the latest version (v14.2.0) from here and let us know how it goes on your side. I have used the following code example to test your issue. Please check the attached output documents.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertImage(MyDir + "before.png");
doc.Save(MyDir + "Out.docx");
doc.Save(MyDir + "Out.pdf");

If the problem still remains, please share following detail for investigation purposes.

  • Please attach your input Word document.
  • Please create a standalone/runnable simple application (for example a Console Application Project) that demonstrates the code (Aspose.Words code) you used to generate your output document
  • Please attach the output Word/PDF file that shows the undesired behavior.

As soon as you get these pieces of information to us we’ll start our investigation into your issue.

We were using version 14.1, upgrading to the latest version did it.

Thank you.

Hi Abdulrahman,

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.