In this tutorial, we will explore how to convert Excel to PDF using C++. Excel files are commonly used to work with data involving computation, like you can perform different operations and calculations to process the data. You can perform Excel to PDF conversion using C++ using simple API interface and with no dependence on MS Excel.
Steps to Convert Excel to PDF using C++
- Configure Aspose.Cells.Cpp package with NuGet package Manager
- Add reference to Aspose::Cells namespace
- Instantiate the Workbook Class object to load the input Excel file
- Save output PDF file with Save method
You can follow the example below to save any Excel file to PDF using C++. Only few simple API calls can let you perform this task quickly.
Code to Convert Excel File to PDF using C++
In the previous article, we explored How to Save Excel File as PDF using C#. Whereas in this step-by-step guide, we have learned Excel to PDF Conversion in C++.