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

Free Support Forum - aspose.com

PDF- Transparency objects are still present in the PDF_A_2_A

Hi Team,

I’ve converted Docx to pdf. In this Conversion, the pdf contains a transparency object. Aspose word team suggests an idea, but that’s not satisfied in our business requirement. How to remove the transparency object in pdf image. is it possible please share the source code?

PDF file: out_A_2_A.pdf (1.4 MB)

Aspose words product team: [Transparency objects are still present in the PDF_A_2_A]

Note: In this case, we need to retain the document resolution also.

Regards,
Mahi

@Mahesh39

Aspose.PDF does not provide APIs to remove the transparency of image. However, you can use Aspose.Imaging to working with images. You can extract image from Word document using Aspose.Words, process it using Aspose.Imaging and then insert back the image at the same place in Word document using Aspose.Words before saving document to PDF.

We are moving this forum thread to Aspose.Imaging forum where you will be guided appropriately.

@Mahesh39, Using Aspose.Imaging you can load/save images that support transparency - https://docs.aspose.com/imaging/net/developer-guide/how-to/save-transparent-image/ Also if you want to place your transparent image on non-transparent background you can use Graphics class. Such example presented - https://docs.aspose.com/imaging/net/drawing-images-using-graphics/#drawing-images-using-graphics--complete-source Here you can use method graphics.DrawImage to draw your loaded transparent image on final non-transparent image with specified background.

1 Like