Dear aspose support,
one of our customers informed me that upon generating a PDF out of a PPTX, some images lose their transparency and instead show a black background. i did some research but it’s still not quite clear why this happens. so i hope you can help me.
the code that converts the pptx to pdf:
private ByteArrayContent generatePdfContent(Presentation presentation) {
PdfOptions options = new PdfOptions();
options.setSaveMetafilesAsPng(true);
options.setTextCompression(PdfTextCompression.Flate);
options.setCompliance(PdfCompliance.Pdf15);ByteArrayOutputStream pdfOutputStream = new ByteArrayOutputStream(); presentation.save(pdfOutputStream, SaveFormat.Pdf, options); return new ByteArrayContent(pdfOutputStream.toByteArray(), "application/pdf");
}
example pptx:testpres_17062020.zip (324.2 KB)
hope you can help me, thanks in advance!