Slides.NET generates huge PDF sometimes

We used TOTAL PDF previews of our documents, it works very well but sometimes it generates enormous output pdf file if the input is a PowerPoint. We see 4xxKB PowerPoint files being turned into 15MB PDF.

Is it a bug? or it can trim down the size?

Thanks

Jacky

@jacky.lee

Can you please possibly share the source file and generated PDF with us along with used code. On the basis of provided information we will be able to share why 4 MB presentation is being rendered in 15 MB.

Basically we use the code as below:

     Aspose.Slides.Export.PdfOptions options = new Aspose.Slides.Export.PdfOptions();
        //Define behavior for metafiles
        options.SaveMetafilesAsPng = true;
        options.EmbedTrueTypeFontsForASCII = true; 
        options.EmbedFullFonts = true; 
        options.JpegQuality = 90;  
        //Set Text Compression level
        options.TextCompression = Aspose.Slides.Export.PdfTextCompression.Flate;
        //Define the PDF standard
        options.Compliance = Aspose.Slides.Export.PdfCompliance.Pdf15;
        slideDocument.Save(outputFilePath, Aspose.Slides.Export.SaveFormat.Pdf, options);
        slideDocument.Dispose();
    }

Sample Files

@jacky.lee

We need to investigate this on our end. I have created a ticket with ID SLIDESNET-42393 in our issue tracking system to further investigate the issue that whether it is fine to have this much bigger PDF or there is any issue. We will share the feedback with you as soon as it will be addressed.