Excel to PDF .Net

.NET assembly to convert Excel (.xls and .xlsx) workbooks to PDF and Word.

using System;
        using System.IO;
        using SautinSoft;
        namespace Sample
        {
            class Sample
            {
                static void Main(string[] args)
                {
                    ExcelToPdf x = new ExcelToPdf();
                    x.OutputFormat = SautinSoft.ExcelToPdf.eOutputFormat.Pdf;
                    string excelFile = Path.GetFullPath(@"..\..\..\test.xlsx");
                    string pdfFile = Path.ChangeExtension(excelFile, ".pdf"); ;
                    try
                    {
                        x.ConvertFile(excelFile, pdfFile);
                        System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(pdfFile) { UseShellExecute = true });
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex.Message);
                        Console.ReadLine();
                    }
                }
            }
        }
Convert Excel file to PDF file

The Excel to PDF .Net product includes a code example for converting an Excel file to a PDF file. This example demonstrates how to use the library to transform Excel content into a PDF document programmatically.

The product supports various platforms, including Windows, Linux, macOS, and Docker, and is compatible with .NET 8, 7, 6, 5, Standard 2, Core 2x & 3x, and Framework 4.6.2+