DOCX JPG PDF XML PPT
Product Family
JPEG

Convert PPT to JPEG in C++

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

Convert PPT to JPEG Using C++

Aspose.Slides for C++ is a PowerPoint processing API that lets you convert PPT presentations to JPEG 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

PPT to JPEG C++ Conversion Source Code

auto presentation = MakeObject<Presentation>(u"presentation.ppt");
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 PPT to JPEG via C++

Render a slide from a PPT presentation to JPEG with a few lines of C++ code.

  1. Create a Presentation instance from the source PPT 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::Jpeg.

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.

Free App to Convert PPT to JPEG

Convert presentations and slides online.

Other Supported Conversions

You can also convert PPT into many other file formats including a few listed below.

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