PPT to PNG Images using C++

There might be situations where you need to convert your PowerPoint files to images. For example, to generate thumbnails or to add images of the slides to a document. For such cases, converting PowerPoint files to PNG format will prove to be helpful as PNG is a popular raster graphics format that supports lossless compression. To that end, this article will teach you how to convert your PowerPoint PPT to PNG images in C++.

C++ PowerPoint PPT to PNG Converter

Aspose.Slides for C++ is a robust and feature-rich API that allows you to create, read, and update PowerPoint files without requiring Microsoft PowerPoint to be installed. Furthermore, the API supports converting PowerPoint presentations to PNG images. You can either install the API through NuGet or download it directly from the Downloads section.

PM> Install-Package Aspose.Slides.Cpp

Steps to Convert PPT to PNG in C++

Aspose.Slides for C++ provides the simplest way of converting slides in PowerPoint PPT to PNG images. The following are the steps that you need to perform for PPT to PNG conversion in your C++ applications.

  • Load the PPT/PPTX presentation from disk.
  • Set dimensions of output PNG image.
  • Convert each slide in PPT to a PNG image.
  • Save PNG image file on disk.

Let’s now transform these steps into the code to see how to convert a PPTX file to PNG in C++.

Convert PPTX to PNG using C++

The following are the steps to convert PowerPoint files to PNG images using C++.

The following sample code shows how to convert PowerPoint files to PNG images using C++.

C++ PowerPoint to PNG Converter - Get a Free License

In order to try the API without evaluation limitations, you can request a free temporary license.


In this article, you have learned how to convert PowerPoint files to PNG images using C++. We used the Aspose.Slides for C++ API to achieve this. It is a powerful API that provides a bunch of additional features for working with PowerPoint files. You can explore the API in detail by visiting the official documentation. In case of any queries, please feel free to reach us at our free support forum.

See Also