Convert PPTM to BMP in C++

Convert PPTM to BMP using Aspose.Slides for C++ without Microsoft PowerPoint.

Convert PPTM to BMP Using C++

Aspose.Slides for C++ is a PowerPoint processing API that lets you convert PPTM presentations to BMP in C++ applications without Microsoft PowerPoint. Install the library from NuGet or download it from the Aspose.Slides for C++ releases page .

Command

PM> Install-Package Aspose.Slides.Cpp

PPTM to BMP C++ Conversion Source Code

auto presentation = MakeObject<Presentation>(u"presentation.pptm");
auto slide = presentation->get_Slide(0);

auto desiredSize = Size(1200, 800);
auto image = slide->GetImage(desiredSize);
image->Save(u"slide.bmp", ImageFormat::Bmp);
image->Dispose();

presentation->Dispose();

How to Convert PPTM to BMP via C++

Render a slide from a PPTM presentation to BMP with a few lines of C++ code.

  1. Create a Presentation instance from the source PPTM file.
  2. Get the first slide from the presentation.
  3. Set the output image dimensions with Size.
  4. Call GetImage to render the slide.
  5. Save the rendered image with ImageFormat::Bmp.

System Requirements

Before running the C++ conversion example, make sure that the following prerequisites are available.

  • Microsoft Windows, Linux, or another compatible OS with the supported C++ runtime.
  • Aspose.Slides for C++ referenced in your project.

Built with Aspose.Slides

Convert PPTM to BMP Online

The free Aspose.Slides Conversion app is built with Aspose.Slides for C++, the same API as the code above. Open it and see what the API can do with your own PPTM files.

  • Runs in your browser, nothing to install.
  • See how Aspose.Slides converts files before you write code.
  • Upload PPTM files and save them as BMP.
  • Download the result or convert more files.