I am trying to convert PPT to PDF , when I try from the local machine it works fine, but same code when we deploy to the server I am getting the following error.
Error in method GetLLPPTReport - Value cannot be null. Parameter name: metafile at Syncfusion.Pdf.Graphics.PdfMetafile..ctor(Metafile metafile) at Syncfusion.PresentationToPdfConverter.PresentationToPdfConverter.DrawSlide(PdfDocument pdfDocument, ISlide slide, IPresentation presentation) at Syncfusion.PresentationToPdfConverter.PresentationToPdfConverter.Convert(IPresentation presentation, PresentationToPdfConverterSettings settings)
I tried all the possible ways not able to figure out the exact issue.
My code is
IPresentation pptxDoc = Presentation.Open(PPTFilePath);
PdfDocument pdfDocument = PresentationToPdfConverter.Convert(pptxDoc);
pdfDocument.Save(stream);
pdfDocument.Close(true);