MiniPdf converts Word and Excel files to PDF with no COM dependencies, no cloud uploads, and no Adobe. Just .NET — runs anywhere, including serverless.
Drop a .docx or .xlsx file below. Your file is sent to the API, converted server-side by MiniPdf, and returned as a PDF — nothing is stored.
MiniPdf parses Office Open XML formats directly — no COM interop, no LibreOffice, no proprietary SDKs.
MiniPdf reads the Open XML structure of your .docx or .xlsx file using built-in .NET APIs — no third-party Office SDKs required.
Content is laid out and rendered into a valid PDF 1.4 stream, handling text, fonts, images, tables, charts, and styles natively.
The API returns the PDF as a byte array or file stream. Nothing is stored server-side. Works as a NuGet library, CLI tool, or HTTP endpoint.
Three lines of C# is all you need. MiniPdf ships as a NuGet package, CLI tool, and pre-compiled Native AOT binaries.
// Excel → PDF MiniPdf.ConvertToPdf("data.xlsx", "output.pdf"); // Word → PDF MiniPdf.ConvertToPdf("report.docx", "output.pdf"); // Return as byte array byte[] pdf = MiniPdf.ConvertToPdf("data.xlsx"); // From a stream using var stream = File.OpenRead("data.xlsx"); byte[] pdf = MiniPdf.ConvertToPdf(stream);
// Register fonts at app startup MiniPdf.RegisterFont("NotoSansSC", File.ReadAllBytes("Fonts/NotoSansSC.ttf")); MiniPdf.ConvertToPdf("report.docx", "out.pdf");
# NuGet package (library) dotnet add package MiniPdf # Global CLI tool dotnet tool install --global MiniPdf.Cli # Standalone binaries (no .NET runtime needed) # Download from GitHub Releases for: # Windows x64/ARM64 # Linux x64/ARM64 # macOS x64/ARM64
# Basic conversion minipdf report.docx # Specify output path minipdf convert report.docx -o ./out/report.pdf # With custom fonts folder minipdf report.docx --fonts ./Fonts # Show version minipdf --version
No Microsoft Office, no COM interop, no LibreOffice. Converts purely via built-in .NET APIs — deploy anywhere.
Pre-compiled standalone executables for Windows, Linux, and macOS. No .NET runtime required on the target machine.
Cold-start friendly, no disk state required. Works in AWS Lambda, Azure Functions, and containerized environments.
Register any TTF font at startup to handle Unicode, CJK characters, emoji, and custom brand typefaces.
Handles bar, pie, line, scatter charts plus embedded images with solid rendering fidelity across test cases.
Apache 2.0 license — free for personal and commercial use, no strings attached. Fork it, ship it, build on it.
Scored across 373+ test cases measuring text similarity, visual accuracy, and page count. Methodology: text 40% · visual 40% · page count 20%.
Pick your deployment method — NuGet library, global CLI tool, or a pre-compiled binary that needs no runtime at all.
dotnet add package MiniPdf # Then in your code: MiniPdf.ConvertToPdf("report.docx", "output.pdf");