WMF Images Are Rendered Incorrectly when Converting PPTX to PDF in C#

Hi,

When converting a PPTX to PDF using Aspose, I noticed the output layout was rendered incorrectly.

Code:

        var doc = new Presentation(@".\test.pptx");
        var saveOptions = new PdfOptions
        {
            Compliance = Aspose.Slides.Export.PdfCompliance.Pdf15,
            SaveMetafilesAsPng = false
        };            
        doc.Save(@".\out.pdf", SaveFormat.Pdf, saveOptions);

If I save the PPTX manually to PDF using MS Office ‘save as’ feature, the issue doesn’t happen.

I’ve attached my test files, font files and a screenshot for your reference. Could you please take a look?

tests.zip (964.2 KB)
image.png (125.4 KB)
image.png (38.7 KB)

Thanks,

@ServerSide527,
Thank you for reporting the issue. I’ve reproduced the problem with rendering the images in PDF and added a ticket with ID SLIDESNET-43353 to our issue tracking system. We apologize for any inconvenience. Our development team will investigate the case. You will be notified when the issue is resolved.

Please share the following additional information:

  • OS version where the code was executed
  • .NET target platform in your app

We will then also test a solution in an environment similar to yours.

Thanks for the quick response.

The OS version: Windows 10 x64 21H2
.NET Target Platform: .Net Framework 4.7.2

Thanks,

@ServerSide527,
Thank you for the additional information. I forwarded it to our developers.

The issues you have found earlier (filed as SLIDESNET-43353) have been fixed in Aspose.Slides for .NET 22.9 (ZIP, MSI).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.