I regret to share that there is no provision on Aspose.Slides API to load the HTML file directly as Stream inside Presentation class constructor. The API expect valid Presentation file (PPT, PPTX, ODP etc) either on disk or from stream. The error that you are getting is correct and it is expected behaviour of the API. We will update the example in the shared link as well. The API only allows importing HTML content inside TextFrame of any shape inside presentation slide only. Please consider following example for importing HTML content.
I agree with you and we are going to update the code on website. I have already shared the sample code that you can use to import HTML inside PowerPoint. You can export word document page by page to HTML and then import individual HTML files to separate slide shape text frames to achieve the desired results.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.