Skip to content

Repository files navigation

MiniPdf

Lightweight Office-to-PDF libraries and command-line tools for .NET and Rust.

NuGet crates.io GitHub stars DOI License

English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Italiano | Français

Online Demo · Releases · Report an issue

MiniPdf converts Office documents directly to PDF without Microsoft Office, LibreOffice, Adobe Acrobat, or COM automation at runtime. Choose the implementation that matches your project.

Choose an implementation

.NET Rust
Status Stable, full implementation Experimental, under active development
Inputs XLSX, DOCX, PPTX, PDF merge XLSX, DOCX
Interfaces .NET library, CLI, standalone Native AOT binaries Rust crate, CLI
Content extraction Markdown, JSON, semantic .NET model Not yet available
Documentation Open the .NET guide Open the Rust guide

For production use and the broadest document support, start with .NET. Choose Rust when you want a native Rust dependency and can work within its current conversion scope.

Quick start

.NET

dotnet add package MiniPdf
using MiniSoftware;

MiniPdf.ConvertToPdf("report.docx", "report.pdf");

Prefer a command-line tool?

dotnet tool install --global MiniPdf.Cli
minipdf report.docx -o report.pdf

The .NET guide covers conversion, content extraction, PDF merge, custom fonts, CLI options, and deployment.

Rust

cargo add minipdf
cargo install minipdf-cli
minipdf::convert_to_pdf("report.docx", "report.pdf")?;
minipdf report.docx -o report.pdf

The Rust guide documents the crate API, CLI, supported features, known gaps, and development workflow.

Why MiniPdf

  • No office suite required: conversion runs inside your application or CLI.
  • Small deployment surface: minimal dependencies and no external process.
  • Server and CI friendly: works in containers, cloud services, and pipelines.
  • Native command-line options: .NET Native AOT releases and a Rust CLI.
  • Open development: Apache 2.0 licensed with reproducible visual benchmarks.

MiniPdf targets practical document conversion, not complete Microsoft Office layout compatibility. Complex templates may render differently; use the online demo or benchmark reports to evaluate representative files.

Project resources

Resource Description
Online demo Try conversion in a browser
.NET documentation Stable library and CLI usage
Rust documentation Experimental crate and CLI usage
.NET XLSX benchmark Visual comparison results for spreadsheets
.NET DOCX benchmark Visual comparison results for documents
Rust benchmark workflow Generate fixture coverage and comparison reports
GitHub releases Packages and standalone binaries
Issues Bugs, compatibility reports, and feature requests

License

Apache License 2.0. Commercial use is welcome; retain the required notices and attribution.

Your star or donation helps sustain the project.

About

[Beta] A minimal library/CLI convert Word, Excel, PPT to PDF. Built in .NET & Rust.

Topics

Resources

Stars

370 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Contributors

Languages