Skip to content

SautinSoft/SautinSoft.ExcelToPdf.Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nuget Nuget Passed windows macOS linux docker aws microsoftazure

.NET SDK to convert Excel to PDF

Excel

SautinSoft.Excel is .NET assembly (SDK) to convert Excel workbooks to PDF, RTF, DOCX, Word.

Quick links

Top Features

System Requirement

  • .NET Framework 4.6.1 - 4.8.1
  • .NET Core 2.0 - 3.1, .NET 5, 6, 7, 8
  • .NET Standard 2.0
  • Windows, Linux, macOS, Android, iOS.

Getting Started with Excel to PDF .Net

Are you ready to give Excel to PDF .NET a try? Simply execute Install-Package sautinsoft.exceltopdf from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Excel to PDF .NET and want to upgrade the version, please execute Update-Package sautinsoft.exceltopdf to get the latest version.

Convert XLSX to PDF

ExcelToPdf x = new ExcelToPdf();
// Set PDF as output format.
x.OutputFormat = SautinSoft.ExcelToPdf.eOutputFormat.Pdf;
string excelFile = Path.GetFullPath(@"..\..\test.xlsx");
string pdfFile = Path.ChangeExtension(excelFile, ".pdf"); 
x.ConvertFile(excelFile, pdfFile);

Convert XLSX to DOCX

ExcelToPdf x = new ExcelToPdf();
// Set DOCX as output format.
x.OutputFormat = SautinSoft.ExcelToPdf.eOutputFormat.Docx;
string excelFile = Path.GetFullPath(@"..\..\test.xlsx");
string docxFile = Path.ChangeExtension(excelFile, ".docx"); 
x.ConvertFile(excelFile, docxFile);

Merge PDF

ExcelToPdf x = new ExcelToPdf();
FileInfo pdfFile = new FileInfo(Path.ChangeExtension(excelFile, ".pdf"));
string singlePdf = Path.Combine(pdfFile.Directory.FullName, "Single.pdf");
x.MergePDFFileArrayToPDFFile(new string[] { pdfFile.FullName, pdfFile.FullName }, singlePdf);

Resources

About

Excel to PDF .Net is a standalone C# library to convert Excel spreadsheets and workbooks to PDF, Word, RTF.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published