I am using Aspose.Slides for .NET version 21.2.0.
When my system tried to convert pptx to html, the system generated error “a generic error occured in GDI+”.
Following is the exception detail:
Capture.JPG (28.5 KB)
I have also attached the sample slide I want to convert.
sampleSlide.zip (536.8 KB)
The code is very simple, just save it as html.
{
{ // Save presentation to memory stream oFile.Save(stream, Aspose.Slides.Export.SaveFormat.Html); stream.Flush(); stream.Seek(0, SeekOrigin.Begin); } }
The problem occured in production server (windows server 2016), which is hardened.
The problem did not occur in my development server (windows server 2019).
The same issue actually happened when i convert PDF to html. So it has to be something with the convertion engine to html which caused the problem.
Is there any idea what caused the problem?
Does it require certain folders to access?
Why i wanted to convert to html, because I want to extract the text inside the slide.
If we cannot convert pptx to html, is there a way to convert pptx to text?