XLSX → PDF 2 min read · Updated May 2025

How to Convert XLSX to PDF in .NET

Learn how to convert XLSX to PDF in C#, F#, or VB.NET using GroupDocs.Conversion.LowCode. Preserve tables, charts, and formatting with no Microsoft Excel required.

Overview

This article explains how to convert Excel (XLSX) files to PDF format using the GroupDocs.Conversion.LowCode Document Conversion Plugin for .NET. GroupDocs Document Conversion Plugins are lightweight, single-purpose tools that make document conversion simple and efficient for .NET developers.


About Document Conversion Plugins

GroupDocs Document Conversion Plugins are built on our enterprise-grade GroupDocs.Conversion SDK. These plugins support converting PDF, Word, Excel, PowerPoint, and HTML files, and are designed for cross-platform use on Windows, macOS, and Linux under .NET 6+. Each plugin offers a lightweight, fixed-price solution for a specific conversion (e.g., XLSX → PDF), making them ideal for developers who need a simple, focused tool.


Why Convert XLSX to PDF?

Exporting Excel spreadsheets to PDF ensures:

  • Cross-platform document sharing
  • Consistent print layout and margins
  • Preservation of tabular formatting and charts

Prerequisites

  • .NET 6.0 or later
  • A valid license file (GroupDocs.Conversion.LowCode.lic)
  • Source XLSX file to convert

Installation

To install the GroupDocs.Conversion.LowCode package, run the following command in your terminal:

dotnet add package GroupDocs.Conversion.LowCode

Code Example

The following example demonstrates how to convert an XLSX file to PDF:

using GroupDocs.Conversion.LowCode;// Set your licenseLicense.Set("GroupDocs.Conversion.LowCode.lic");// Create a converter for XLSXvar converter = new XlsxToPdfConverter("source.xlsx");// Convert to PDFconverter.Convert("output.pdf");

Output

The resulting PDF will be saved to the specified path (e.g., output.pdf). The converted file maintains layout, formatting, and structure from the original Excel spreadsheet.


Licensing

A valid license is required to use the API without evaluation limitations. You can obtain a free temporary license for testing:



More in Document Conversion