A command-line tool to convert Excel (.xlsx) and Word (.docx) files to PDF.
Powered by MiniPdf — zero-dependency, pure .NET.
dotnet tool install --global MiniPdf.Cli# Convert Excel to PDF (output: data.pdf)
minipdf data.xlsx
# Convert Word to PDF
minipdf report.docx
# Specify output path
minipdf report.docx -o /path/to/output.pdf
# Register custom fonts (for containers / Blazor WASM)
minipdf report.docx --fonts ./Fonts| Command | Description |
|---|---|
minipdf <file> |
Convert .xlsx / .docx to PDF |
minipdf convert <file> -o <out> |
Convert with explicit output path |
minipdf --version |
Show version |
minipdf --help |
Show help |
- No COM, no Office installation, no LibreOffice — runs anywhere .NET runs
- Single command, zero config
- Custom font registration for headless / container environments
- Apache 2.0 licensed — free for commercial use
- Library package: MiniPdf on NuGet
- Source code: https://github.com/shps951023/MiniPdf
- License: Apache-2.0