We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Support of PdfCompliance PDF/A-2 | Transparent PNG Rendering using Java


I am having problems with converting Word-Documents to PDF using Aspose Words for JAVA.
The Word-Documents contain PNG-Images with transparent background.
But within the created pdf document the images have a white background. Please see the attached Word- and PDF-File.
The code to reproduce it is very simple:

FileInputStream fin = new FileInputStream(“C:/temp/transparency.docx”);
com.aspose.words.Document asposeDoc = new com.aspose.words.Document(fin);
PdfSaveOptions options = new PdfSaveOptions();
FileOutputStream fout = new FileOutputStream(“C:/temp/transparency.pdf”);
asposeDoc.save(fout, options);

I could reproduce this issue with the latest Version 16.11 of Aspose Words for JAVA.

Could you please check it?

Thanks in advance.


Hi Stefanie,

Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word. If you convert your document to Pdf with PDF/A compliance, you will get the same output. Please use PdfCompliance as PDF_15 to fix this issue.

Dear Tahir,

thank you very much for your response.

Are there any plans at your side to support the PDF/A-2 Format ?
This format allows transparent images.

Thanks in advance

Hi Stefanie,

Thanks for your inquiry. Unfortunately, Aspose.Words does not support the requested feature at the moment. However, we have logged this feature request as WORDSNET-5971 in our issue tracking system. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

A post was split to a new topic: PDF/A-3 format and A-2 transparency

The issues you have found earlier (filed as WORDSNET-5971) have been fixed in this Aspose.Words for .NET 21.7 update and this Aspose.Words for Java 21.7 update.