'Save as pdf using ClosedXML

Does ClosedXML have any function that can be used to save an excel file as PDF?

Currently i am using ClosedXML to create and populate the excel file and then using Interop to save as PDF.
But since Interop depends on the MS Office installed on the syatem the formatting changes on every version of MS Office. And since ClosedXML doesnt require having MS office installed it would be nice to be able to export or save as PDF directly from it without using Interops.



Solution 1:[1]

Does ClosedXML have any function that can be used to save an excel file as PDF?

No.

Solution 2:[2]

Instead you can use the free version of GemBox.Spreadsheet.

Also look at the top 10 libraries which allows us to manipulate excel.

However GemBox was the only free and featured one that I found with the purpose of creating an invoice report for a website, by converting excel to pdf.

Solution 3:[3]

you can use the ClosedXML.Excel and iTextSharp to convert Excel to PDF file. Here a link with example: Convert Excel file to Pdf in ASP.Net

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Sujoy
Solution 3 Steven Gomez