EDIT: I’m watching it in debug. It saves to the folder in the web application, but the format is definitely HTML. I have nowhere else to look - it does the save, I look at the file immediately. It won’t open in Adobe Reader or a browser (Chrome and Edge have been tried), but when I open it in Notepad, it is definitely in HTML format. The exact same code and Aspose.Slides for .NET library (21.9) in my test app (windows forms) saves it in a different format.
Using powerPoint As New Presentation(paramExportFilePath)
Dim po As New Aspose.Slides.Export.PdfOptions() With {
.Compliance = Aspose.Slides.Export.PdfCompliance.Pdf15
}
powerPoint.Save(newFileName, SaveFormat.Pdf, po)
End Using
Hi - I’m running a conversion of a powerpoint presentation and it works successfully from a windows forms application, but not on our web application.
I realize this probably has something to do with our environment, but the code is the same, the version (21.9) is the same, but does not work from the web application. If I copy the saved file from the web server to my local machine, it still will not open (“failed to load pdf document” is the message). So I’m thinking something is happening during the save.
The difference I can see is that the one from Windows Forms looks to be a binary file, and the one on the website is HTML.