DOCX JPG PDF XML PPSM
Product Family
JPEG

Convert PPSM to JPEG in C++

Convert PPSM to JPEG using Aspose.Slides for C++ without Microsoft PowerPoint.

Convert PPSM to JPEG Using C++

Aspose.Slides for C++ is a C++ library for creating, reading, editing, and converting presentation files. It allows developers to convert PPSM files to JPEG in C++ applications without Microsoft PowerPoint.

Install the library from NuGet or download it from the Aspose.Slides for C++ releases page . You can also install it from the Package Manager Console.

Command

PM> Install-Package Aspose.Slides.Cpp

PPSM to JPEG C++ Conversion Source Code

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

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

presentation->Dispose();
 

How to Convert PPSM to JPEG via C++

C++ developers can convert PPSM files to JPEG with a few lines of code.

  1. Create a Presentation instance from the source PPSM file.
  2. Get the first slide from the presentation.
  3. Set the output image size with Size.
  4. Render the slide to an image with GetImage.
  5. Save the image as a JPEG file with ImageFormat::Jpeg.

System Requirements

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

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

Free App to Convert PPSM to JPEG

Convert presentations and slides online.

Other Supported Conversions

You can also convert PPSM into many other file formats.

PPSM TO BMP (Bitmap Image)
PPSM TO EMF (Enhanced Metafile Format)
PPSM TO GIF (Graphics Interchange Format)
PPSM TO HTML (Hypertext Markup Language)
PPSM TO ODP (OpenDocument Presentation Format)
PPSM TO OTP (OpenDocument Presentation Template)
PPSM TO PDF (Portable Document Format)
PPSM TO PNG (Portable Network Graphics)
PPSM TO POT (PowerPoint 97–2003 Template)
PPSM TO POTM (PowerPoint Macro-Enabled Template)
PPSM TO POTX (PowerPoint Template)
PPSM TO PPS (PowerPoint Slide Show)
PPSM TO PPSX (PowerPoint Slide Show)
PPSM TO PPT (PowerPoint 97-2003 Presentation)
PPSM TO PPTM (Macro-enabled Presentation File)
PPSM TO PPTX (Open XML Presentation Format)
PPSM TO SVG (Scalable Vector Graphics)
PPSM TO SWF (Small Web Format)
PPSM TO TIFF (Tagged Image File Format)
PPSM TO XML (PowerPoint XML Presentation)
PPSM TO XPS (XML Paper Specification)