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

Free Support Forum - aspose.com

Exception"Unknown pixel format" on converting PPTX to PDF using Aspose.Slides for .NET

Hi Aspose Team,

I have the following code:

Presentation p = new Presentation(is, loadOptions);
is.close();
// Set options to reduce file size of generated pdf
PdfOptions options = new PdfOptions();
options.setJpegQuality((byte) 90);
options.setBestImagesCompressionRatio(true);

p.save(os, SaveFormat.Pdf, options);

When I run this with the attached presentation I get the following exception:
com.aspose.slides.exceptions.InvalidOperationException: Unknown pixel format.

How can I successfully convert this pptx file to pdf?

Best regards and thank you very much for your support!

Paultest-streched.pptx.zip (1.3 MB)

@paulrinckens,

I have worked with source file shared by you using Aspose.Slides for Java 18.12 and have been able to observe the issue. A ticket with ID SLIDESJAVA-37552 has been created in our issue tracking system to further investigate issue on our end. This thread has been linked with the issue so that you may be notified once the issue will be fixed.