PowerPoint to PDF C++

Many organizations use PowerPoint presentations in meetings or other group discussion scenarios. There might be situations where you need to share the same information with other people. In such cases, you may either choose PPTX or PDF format. If the file is to be used for presentations only, then the PPTX file format is acceptable. But if the file is to be shared for information purposes, then the PDF format is a better and user-friendly option. In this article, you will learn how to convert PowerPoint slides to PDF format using C++.

C++ API for PowerPoint to PDF conversion

Aspose.Slides for C++ is a C++ library for creating and reading PowerPoint documents without using Microsoft PowerPoint. In addition, it also supports converting PowerPoint files to PDF format. You can either install the API through NuGet or download it directly from the Downloads section.

PM> Install-Package Aspose.Slides.Cpp

Convert PowerPoint to PDF using C++

The following are the steps to convert PowerPoint presentations to PDF format.

The following is the sample code to convert PowerPoint presentations to PDF using C++.

Convert PowerPoint to PDF with additional options

Aspose.Slides for C++ provides the PdfOptions class to customize the conversion of PowerPoint presentations to PDF format. The following are some of the options provided by the PdfOptions class.

The following are the steps to convert PowerPoint presentations to PDF format with additional options.

The following is the sample code to convert PowerPoint to PDF with additional options.

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 presentations to PDF format programmatically using C++. In addition, you have learned how to customize the conversion of PowerPoint to PDF files using Aspose.Slides for C++ API. The API provides many additional features that you can explore in detail by using the official documentation. If you have any questions, please feel free to contact us on the forum.

See Also

Tip: The PowerPoint to PDF conversion process powered by Aspose.Slides has been implemented in Aspose’s free online PowerPoint to PDF Converter.