Convert PowerPoint to JPG using C++

Convert PowerPoint to JPG using C++

Microsoft PowerPoint is a powerful and feature-rich software that allows you to create beautiful slides to use in your meetings. Even though PowerPoint is great for presentation purposes, it is not ideal for displaying content on the web, especially if the content is for information purposes only. For this, the better option would be to convert the PPTX files to images such as JPEG or PNG. In this article, you will learn how to convert PowerPoint to JPG programmatically using C++.

TIP:

Aspose online PowerPoint to JPG converter is a live implementation of the PowerPoint to JPG conversion process, so you will do well to check it out.

C++ API for Converting PowerPoint to JPG

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

PM> Install-Package Aspose.Slides.Cpp

Convert PPTX to JPG using C++

The following are the steps to convert PowerPoint files to JPG images.

The following is the sample code to convert PPTX files to JPG images using C++

Source PowerPoint File

PowerPoint Source File Image

Converted JPG Images

Converted JPG Images

Convert PowerPoint to JPG with Custom Image Dimensions

With Aspose.Slides for C++, you can customize the dimensions of the generated images according to your requirements. The following are the steps to convert PowerPoint slides to JPG images with custom dimensions.

The following is the sample code for converting PowerPoint presentations to JPG images with custom dimensions.

Get a Free License

You can try the API without evaluation limitations by requesting a free temporary license.

Conclusion

In this article, you have learned how to convert PowerPoint slides to JPG images using C++. Furthermore, you saw how to provide custom dimensions for the generated images. Aspose.Slides for C++ offers many other features for working with PowerPoint files. You can explore the API in detail by using the official documentation. If you have any questions, please feel free to contact us on the forum.

See Also