Free Support Forum - aspose.com

Transparency is lost when converting PPTX to PDF


#1

Hi,

When converting a PPTX document to a PDF, I noticed all the transparency properties on the image are lost.

Code:

        var ppt = new Presentation(@".\test2.pptx");
        var saveOption = new PdfOptions();
        ppt.Save(@".\test2.pdf", SaveFormat.Pdf, saveOption);

In the output (see the screenshot below), the background of the image became white in the pdf:
image.png (54.9 KB)

I also tried setting SaveMetafilesAsPng to false, code:

        var ppt = new Presentation(@".\test2.pptx");
        var saveOption = new PdfOptions();
        saveOption.SaveMetafilesAsPng = false;
        ppt.Save(@".\test2SaveMetafilesAsPng.pdf", SaveFormat.Pdf, saveOption);

The background became transparent, but all text was missing:

image.png (8.3 KB)

If I use the MS Office ‘Save as’ to pdf, the output looked file.

I’ve attached the test file and both Aspose output files for your reference. Could you please take a look?

test2.zip (139.9 KB)

Thanks,


#2

@ServerSide527,

I have worked with the presentation file shared by you and have observed the issue specified. An issue with ID SLIDESNET-40767 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be fixed.