View POTX in C++

Use Aspose.Slides for C++ to open POTX files and save them as responsive HTML.

View POTX using Aspose.Slides

Aspose.Slides for C++ is a presentation processing library for opening, viewing, editing, and converting presentation files. You can load a POTX file with the Presentation class and save it as HTML for browser-based viewing.

View POTX in C++

Use Aspose.Slides for C++ to load a POTX file and export it to responsive HTML with ResponsiveHtmlController, HtmlOptions, HtmlFormatter, and SaveFormat::Html.

C++ code for viewing POTX

auto presentation = MakeObject<Presentation>(u"presentation.potx");

auto controller = MakeObject<ResponsiveHtmlController>();
auto htmlOptions = MakeObject<HtmlOptions>();
htmlOptions->set_HtmlFormatter(HtmlFormatter::CreateCustomFormatter(controller));

presentation->Save(u"index.html", SaveFormat::Html, htmlOptions);
presentation->Dispose();

How to view POTX in C++

  1. Install Aspose.Slides for C++. See Installation .

  2. Add the library as a reference in your project.

  3. Load the POTX file with the Presentation class.

  4. Create a ResponsiveHtmlController object for responsive HTML formatting.

  5. Create an HtmlOptions object and set the HtmlFormatter property.

  6. Save the POTX presentation as HTML with SaveFormat::Html.

  7. Open the generated HTML file in a browser to view the POTX content.