A minimal, zero-dependency .NET library for converting Excel (.xlsx) files to PDF.
- Excel-to-PDF — Convert
.xlsxfiles to paginated PDF with automatic column layout - Embedded images — JPEG and PNG images embedded in Excel sheets are rendered in the PDF output
- Zero dependencies — Uses only built-in .NET APIs (no external packages)
- Valid PDF 1.4 output
- Word-to-PDF — In development
- Chart — Not currently supported
dotnet add package MiniPdf- .NET 9.0 or later
using MiniSoftware;
// File to file
MiniPdf.ConvertToPdf("data.xlsx", "data.pdf");
// File to byte array
byte[] pdfBytes = MiniPdf.ConvertToPdf("data.xlsx");
// Stream to byte array
using var stream = File.OpenRead("data.xlsx");
byte[] pdfBytes = MiniPdf.ConvertToPdf(stream);MiniPdf output is compared against LibreOffice as the reference renderer across 90 classic test cases (including 30 image-embedding cases).
| Category | Count | Threshold |
|---|---|---|
| 🟢 Excellent | 82 | ≥ 90% |
| 🟡 Acceptable | 7 | 70% – 90% |
| 🔴 Needs Improvement | 1 | < 70% |
Average overall score: 96.4% (text similarity 40% + visual similarity 40% + page count 20%)
All 90 test cases comparing MiniPdf output (left) vs LibreOffice reference (right). Page 1 shown for multi-page results.
This project is licensed under the Apache License 2.0.

















































































































































































