Powerpoint to PDF fails to render some pages

Thanks in advance for any support. Below is a snippet of the code we use to generate pdf's from powerpoints.


using (var tempStream = new MemoryStream())

{

    presentation.Save(tempStream);

    // Need to "open" a presentation to save it to a PDF, cannot save presentation from Create

    using (var temporaryPresentation = Presentation.Open(tempStream))

    {

          temporaryPresentation.ChartToImageConverter = new ChartToImageConverter();

          var presentationToPdfConverterSettings = new PresentationToPdfConverterSettings

          {

               SlidesPerPage = SlidesPerPage.One,

               PublishOptions = PublishOptions.Slides,

               PdfConformanceLevel = PdfConformanceLevel.Pdf_A1B,

               OptimizeIdenticalImages = true

          };

          presentationToPdfConverterSettings.PublishOptions = PublishOptions.Slides;

          presentationToPdfConverterSettings.ShowHiddenSlides = false;

          presentationToPdfConverterSettings.ImageQuality = 100;

          presentationToPdfConverterSettings.ImageResolution = 100;

          var pdfDocument = PresentationToPdfConverter.Convert(temporaryPresentation, presentationToPdfConverterSettings);

          pdfDocument.Save(memoryStream);

          pdfDocument.Close(true);

     }

}

 
Most times it works, but in some cases the pdf generated doesn't render some charts on some pages. I've attached a .zip file with the good powerpoint file and the failed pdf generation. I've used other powerpoint to pdf conversion tools and they all work well so I'm wondering what could be causing the issue with SyncFusion.

SyncFusion Version: 15.4.0.20

Attachment: result_46d9ad32.zip

2 Replies

PH Peter Henry June 4, 2018 02:06 PM UTC

bump


MC Mohan Chandran Syncfusion Team June 5, 2018 08:53 AM UTC

Hi Peter, 
 
Thank you contacting Syncfusion support. 
 
We are able to reproduce the issue with “Chart is not rendered properly in Presentation to PDF conversion” and it has been fixed in our latest release v16.1.0.37 which was rolled out in April 2018. Please download it from the following link given below. 
 
 
Please let us know if you have any questions. 
 
Regards, 
Mohan Chandran. 


Loader.
Up arrow icon