Syncfusion.XlsIORenderer.Net.Core 25.1.37

Syncfusion ASP.NET Core Excel To PDF Converter

A PDF is a fixed document used to display document contents uniformly independent of application software, hardware, and operating system. Syncfusion ASP.NET Core (XlsIO) library converts an Excel document to PDF with just five lines of code. You can prepare your document for long-term archiving by converting it to PDF.

ASP.NET Core Excel To PDF Converter

Features Overview | Docs | API Reference | Online Demo | GitHub Examples | Blogs | Support | Forums | Feedback

Key features

System Requirements

Getting Started

You can fetch the Syncfusion ASP.NET Core Excel to PDF converter library NuGet by simply running the command Install-Package Syncfusion.XlsIORenderer.Net.Core from the Package Manager Console in Visual Studio.

Try the following code snippet to convert an Excel document to PDF.

using Syncfusion.XlsIO;
using Syncfusion.XlsIORenderer;
using Syncfusion.Pdf;
using System.IO;

//Initialize ExcelEngine.
using (ExcelEngine excelEngine = new ExcelEngine())
{
    //Initialize IApplication.
    IApplication application = excelEngine.Excel;
    //Set the default version as Xlsx.
    application.DefaultVersion = ExcelVersion.Xlsx;
    //Load an existing workbook into IWorkbook.
    FileStream excelStream = new FileStream("Sample.xlsx", FileMode.Open, FileAccess.Read);
    IWorkbook workbook = application.Workbooks.Open(excelStream);
    //Initialize XlsIO renderer
    XlsIORenderer renderer = new XlsIORenderer;
    //Initialize PDF document
    using (PdfDocument pdfDocument = new PdfDocument())
    {
        //Convert Excel document into PDF document
        pdfDocument = renderer.ConvertToPDF(workbook);
        //Save the PDF document to stream.
        Stream stream = new FileStream("Output.pdf", FileMode.Create, FileAccess.ReadWrite);
        pdfDocument.Save(stream);
    }
}

For more information to get started, refer to our Getting Started Documentation page.

License

This is a commercial product and requires a paid license for possession or use. Syncfusion�s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA. You can purchase a license here or start a free 30-day trial here.

About Syncfusion

Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 27,000+ customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.

Today, we provide 1700+ components and frameworks for web (Blazor, ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Flutter), mobile (Xamarin, Flutter, UWP, and JavaScript), and desktop development (WinForms, WPF, WinUI, Flutter and UWP). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.


sales@syncfusion.com | www.syncfusion.com | Toll Free: 1-888-9 DOTNET

No packages depend on Syncfusion.XlsIORenderer.Net.Core.

https://ej2.syncfusion.com/aspnetcore/documentation/release-notes/25.1.37?utm_source=nuget&utm_medium=listing

Version Downloads Last updated
25.1.37 30 06/06/2024