Skip to main content

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

minipdf-0.1.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minipdf-0.1.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

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

Hashes for minipdf-0.1.0.tar.gz
Algorithm Hash digest
SHA256 33dd67b285fc39fa6a2c5d3efad12b75bf3c5ec755c254a3290b09a4179a2e07
MD5 d7064e851b9f39d700fb573154dfae88
BLAKE2b-256 89f9625c7bb1b1c42b4631bb6e6a26d6e055bede65091eb797db0916b4c7e517

See more details on using hashes here.

Provenance

The following attestation bundles were made for minipdf-0.1.0.tar.gz:

Publisher: pypi-publish.yml on mini-software/MiniPdf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for minipdf-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb9494d67d5605983d8fd9cdcedde96570582a21d917bbe6aa0fccb1d4616435
MD5 a01ae61ae35f4af4f853bff210308baf
BLAKE2b-256 d91cb578d112f5792ae57dafe9c32deed1bfc433cc22685304a7d505246e25df

See more details on using hashes here.

Provenance

The following attestation bundles were made for minipdf-0.1.0-py3-none-any.whl:

Publisher: pypi-publish.yml on mini-software/MiniPdf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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