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.