Excel files are widely used to keep and share the tabular data. On the other hand, PDF format has been among the ruling digital document formats. In certain cases, the Excel files are to be converted into PDF format programmatically. To achieve that, this article demonstrates how to convert Excel XLS XLSX to PDF in C#.
C# API for Excel to PDF Conversion - Free Download Steps to Convert an Excel File to PDF in C# Convert Excel to PDF in C# C# Set PDF Compliance in Excel to PDF Track Excel to PDF Conversion in C# C# API for Excel to PDF Conversion Aspose.
Directly Converting Excel Files to Pdf with Aspose.Cells
In previous versions, converting Excel files to Pdf needs two components: Aspose.Cells and Aspose.Pdf. With the new version v4.7.0, users can use Aspose.Cells for .NET only to implement this feature. This new change greatly optimizes speed and memory usage.
You will utilize the overloaded Save method of the Workbook class providing the SaveFormat.Pdf enum member that converts the native excel file to pdf format.
The above steps are implemented in the following example.