Skip to main content

MiniPdf for Python

MiniPdf converts basic DOCX, XLSX, and PPTX content to PDF 1.4 without requiring Microsoft Office or LibreOffice. Conversion runs through the Rust MiniPdf engine in minipdf-rs via the PyO3 extension minipdf._native, which the package build backend compiles from native/. A pure Python renderer with reduced feature coverage remains as a fallback for source-tree runs where the extension has not been built.

The package requires Python 3.10 or later, and building it requires a Rust toolchain.

Native Rust Engine

minipdf._native is a PyO3 extension that delegates conversion to the Rust engine in minipdf-rs. When the module is importable, the Python API uses it automatically and the pure Python renderers are only used as a fallback.

Installing the package builds the extension:

pip install .

To rebuild only the extension into the package source tree, use PowerShell:

scripts/Build-Python-Native.ps1

The visual benchmark runner builds the extension automatically.

Install

pip install minipdf

Python API

import minipdf

minipdf.convert_to_pdf("report.docx", "report.pdf")
pdf_bytes = minipdf.convert_to_pdf_bytes("report.docx")

Command Line

minipdf report.docx
minipdf workbook.xlsx -o workbook.pdf
minipdf slides.pptx -o slides.pdf
minipdf convert report.docx -o report.pdf
minipdf report.docx --paper-size a4
minipdf report.docx --page-width 400 --page-height 500

Initial Scope

Version 0.1 supports document page geometry, margins, paragraphs, explicit page breaks, and basic bold, italic, and font-size run formatting. Text currently uses PDF built-in Latin fonts. Tables, images, embedded fonts, CJK/RTL shaping, headers, footers, and lists are not yet supported. XLSX rendering currently extracts common cell value types into text rows, while PPTX rendering extracts paragraph text and preserves slide page dimensions and boundaries.

Metadata

Release files for minipdf 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minipdf 0.7.0
File Size Uploaded
minipdf-0.7.0.tar.gz 115.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for minipdf 0.7.0
File
minipdf-0.7.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
minipdf-0.7.0-cp310-abi3-manylinux_2_35_x86_64.whl CPython 3.10 abi3 Linux glibc 2.35+ x86-64 Details
minipdf-0.7.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
minipdf-0.7.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 5.7 MB

Release files / minipdf-0.7.0.tar.gz

Download URL minipdf-0.7.0.tar.gz
Size 115.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6f2a1aeb35c6347451355828a0f1ce6a47d631c123bff48ec31a460510b26a97
BLAKE2b-256 checksum
How to use checksums
097f43260ca592be66c5525e7efad9a93b679342980915490ea4e450bd257758
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / minipdf-0.7.0-cp310-abi3-win_amd64.whl

Download URL minipdf-0.7.0-cp310-abi3-win_amd64.whl
Size 1.4 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e5c37dbb1307921badbe60d4e1a0512cf9dccb8daf7a70dcf89b740c43a5cca8
BLAKE2b-256 checksum
How to use checksums
b6b5cba094083a1c6089ff8a694d499c06a1da6a6806bb31da976f46306a38df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / minipdf-0.7.0-cp310-abi3-manylinux_2_35_x86_64.whl

Download URL minipdf-0.7.0-cp310-abi3-manylinux_2_35_x86_64.whl
Size 1.5 MB
Tags CPython 3.10 Linux glibc 2.35+ x86-64 abi3
SHA-256 checksum
How to use checksums
dc8905ab85bac11fc12e6c2472456feebb88e9505c13f85b88285cc7f2a4868b
BLAKE2b-256 checksum
How to use checksums
732e749c1c0453b0a8dcca3f2a91806abeea9b6835e0140557716406ff7531b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / minipdf-0.7.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL minipdf-0.7.0-cp310-abi3-macosx_11_0_arm64.whl
Size 1.3 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1c0325ed2e51d7c74c047b51d8fd7818e14069de8e51b6fc0f4c24fdd53daaae
BLAKE2b-256 checksum
How to use checksums
1a5ddfcff39ef66b1e98712e84d2662b29e1808010d0c876e2a0c617a3e4c91d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / minipdf-0.7.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL minipdf-0.7.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 1.4 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6851fde57af79d0031687af893651091c7e97421f4bf6b6777608860751d59f0
BLAKE2b-256 checksum
How to use checksums
85d691647fb78e96e210c0675ab93cae40ab3e2991363b7ffcaca572e8ef372d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.7.0 This release

5 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page