Convert PPTX to JPEG in C++
Convert PPTX to JPEG using Aspose.Slides for C++ without Microsoft PowerPoint.
Convert PPTX to JPEG Using C++
Aspose.Slides for C++ is a PowerPoint processing API that lets you convert PPTX 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.CppPPTX to JPEG C++ Conversion Source Code
auto presentation = MakeObject<Presentation>(u"presentation.pptx");
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 PPTX to JPEG via C++
Render a slide from a PPTX presentation to JPEG with a few lines of C++ code.
- Create a
Presentationinstance from the source PPTX file. - Get the first slide from the presentation.
- Set the output image dimensions with
Size. - Call
GetImageto render the slide. - 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 PPTX to JPEG
Convert presentations and slides online.
Other Supported Conversions
You can also convert PPTX into many other file formats including a few listed below.