XDoc.Excel
Features
Tech Specs
How-to C#
Pricing

C# Excel Library
C# Excel - Convert Excel to PDF in C#.NET


Online C# Tutorial for Converting Excel to PDF (.pdf) Document





RasterEdge Visual C# .NET Excel to PDF converter library control (XDoc.Excel) is a mature and effective Excel document converting utility. Using this Excel to PDF converting library control, .NET developers can quickly convert Excel document to PDF file using Visual C# code. This C#.NET Excel to PDF conversion library can help developers convert multi-page Excel document to multi-page PDF file.

The most outstanding feature of this Excel to PDF converting toolkit is its industry-leading converting accuracy. The PDF file, converted by RasterEdge Excel to PDF converter toolkit, preserves the structure & layout of target Excel document, keeps the elements (like images, tables and chats) of original Excel file and maintains the original text style (including font, size, color, links and boldness).

Why do we need this Excel to PDF converting library? In the daily-life applications, you often need to render and print Excel document content for certain purpose. But without licensed third-party software, you can hardly print the Excel document as the original style. Under this situation, you need to convert Excel document to some image format document.

RasterEdge XDoc.Excel empowers your C#.NET application with advanced Excel to PDF conversion functionality.


C# Demo: Convert Excel to PDF Document



This is a C# programming example for converting Excel to PDF (.pdf) file.

// Load a Excel document.
String inputFilePath = Program.RootPath + "\\" + "1.xlsx";
XLSXDocument doc = new XLSXDocument(inputFilePath);

// Convert and output to a PDF file.
String outputFilePath = inputFilePath + ".pdf";
doc.ConvertToDocument(DocumentType.PDF, outputFilePath);