百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

MiniPdf

> 编程语言
开源

[Beta] 一个最小的 .NET 库,可将 Word、Excel、PPT 转换为 PDF。

364 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

[Beta] 一个最小的 .NET 库,可将 Word、Excel、PPT 转换为 PDF。

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

Implementation Inputs Interfaces Maturity Documentation Visual results
.NET XLSX, DOCX, PPTX Library, CLI, Native AOT binaries Stable .NET guide XLSX
DOCX
PPTX
Rust XLSX, DOCX, PPTX Crate, CLI Experimental Rust guide XLSX
DOCX
Java XLSX, DOCX, PPTX Library, CLI Experimental Java source XLSX
DOCX
Python DOCX Package, CLI Experimental Python guide XLSX
Node.js XLSX, DOCX, PPTX Native package Experimental Node.js guide XLSX
Go XLSX, DOCX, PPTX Package, CLI Experimental Go guide XLSX

Quick start

.NET

bash
dotnet add package MiniPdf
csharp
using MiniSoftware;

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

Prefer a command-line tool?

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

The .NET guide covers conversion, custom fonts, CLI options, and deployment.

Rust

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

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

Java

xml

	io.github.mini-software
	minipdf
	0.2.0

Maven group IDs may contain hyphens, but Java package names may not. Therefore, the dependency uses io.github.mini-software, while imports use io.github.minisoftware.minipdf.

java
import io.github.minisoftware.minipdf.MiniPdf;
import java.nio.file.Files;
import java.nio.file.Path;

try {
	MiniPdf.registerFont(
			"Noto Sans",
			Files.readAllBytes(Path.of("fonts/NotoSans-Regular.ttf")));
	MiniPdf.convertToPdf(Path.of("report.docx"), Path.of("report.pdf"));
} finally {
	MiniPdf.clearRegisteredFonts();
}

Registered fonts are used by DOCX, XLSX, and PPTX conversion. Registrations are process-wide; clear them before configuring a different font set.

Python

bash
pip install minipdf
python
import minipdf

minipdf.convert_to_pdf("report.docx", "report.pdf")

The Python guide lists the current DOCX feature scope and CLI options.

Node.js

bash
npm install minipdf
javascript
const minipdf = require('minipdf')

minipdf.convertToPdf('report.docx', 'report.pdf')

The Node.js guide covers in-memory conversion, page sizing, font registration, and supported native platforms.

Go

bash
go get github.com/mini-software/MiniPdf/minipdf-go@latest
go
import minipdf "github.com/mini-software/MiniPdf/minipdf-go"

if err := minipdf.ConvertToPDF("report.docx", "report.pdf"); err != nil {
	panic(err)
}

The Go guide documents the package, native CLI, current rendering scope, and release tags.

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.
  • Multiple language options: use MiniPdf from .NET, Rust, Java, Python, Node.js, or Go.
  • Native command-line options: available for .NET, Rust, Java, Python, and Go.
  • 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.

Quick contribution

Open a clean fork or clone in any coding agent, then paste this prompt into the agent chat:

Run the minipdf-contribution skill.

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
Java implementation Experimental Maven library and CLI source
Python documentation Experimental package and CLI usage
Node.js documentation Experimental native package usage
Go documentation Experimental package and CLI usage
.NET XLSX benchmark Visual comparison results for spreadsheets
.NET DOCX benchmark Visual comparison results for documents
Rust XLSX benchmark Rust spreadsheet visual comparison results
Rust DOCX benchmark Rust document visual comparison results
Rust benchmark workflow Generate fixture coverage and comparison reports
Community governance Decisions, roles, voting, and maintainer selection
Roadmap Project scope, implementation status, and current priorities
Security Private vulnerability reporting and supported versions
Contributing Development setup, tests, reviews, and provenance requirements
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.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#excelofficepdfword

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言