MiniPdf for Python
Experimental pure Python implementation of MiniPdf. The initial release converts basic DOCX paragraphs to PDF 1.4 without requiring Microsoft Office, LibreOffice, .NET, or Rust at runtime.
The package requires Python 3.10 or later. XLSX support is planned; PPTX is not currently supported.
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 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, lists, XLSX, and PPTX are not yet supported.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file minipdf-0.1.0.tar.gz.
File metadata
- Download URL: minipdf-0.1.0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33dd67b285fc39fa6a2c5d3efad12b75bf3c5ec755c254a3290b09a4179a2e07
|
|
| MD5 |
d7064e851b9f39d700fb573154dfae88
|
|
| BLAKE2b-256 |
89f9625c7bb1b1c42b4631bb6e6a26d6e055bede65091eb797db0916b4c7e517
|
Provenance
The following attestation bundles were made for minipdf-0.1.0.tar.gz:
Publisher:
pypi-publish.yml on mini-software/MiniPdf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
minipdf-0.1.0.tar.gz -
Subject digest:
33dd67b285fc39fa6a2c5d3efad12b75bf3c5ec755c254a3290b09a4179a2e07 - Sigstore transparency entry: 2695780263
- Sigstore integration time:
-
Permalink:
mini-software/MiniPdf@010747cd61f0edfbec70f43df0528e4f5433d325 -
Branch / Tag:
refs/tags/python-v0.1.0 - Owner: https://github.com/mini-software
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@010747cd61f0edfbec70f43df0528e4f5433d325 -
Trigger Event:
release
-
Statement type:
File details
Details for the file minipdf-0.1.0-py3-none-any.whl.
File metadata
- Download URL: minipdf-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb9494d67d5605983d8fd9cdcedde96570582a21d917bbe6aa0fccb1d4616435
|
|
| MD5 |
a01ae61ae35f4af4f853bff210308baf
|
|
| BLAKE2b-256 |
d91cb578d112f5792ae57dafe9c32deed1bfc433cc22685304a7d505246e25df
|
Provenance
The following attestation bundles were made for minipdf-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on mini-software/MiniPdf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
minipdf-0.1.0-py3-none-any.whl -
Subject digest:
fb9494d67d5605983d8fd9cdcedde96570582a21d917bbe6aa0fccb1d4616435 - Sigstore transparency entry: 2695780408
- Sigstore integration time:
-
Permalink:
mini-software/MiniPdf@010747cd61f0edfbec70f43df0528e4f5433d325 -
Branch / Tag:
refs/tags/python-v0.1.0 - Owner: https://github.com/mini-software
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@010747cd61f0edfbec70f43df0528e4f5433d325 -
Trigger Event:
release
-
Statement type: