Skip to main content

multi_convert

Python package for converting document formats between Markdown, HTML, and PDF.

Installation

pip install multi_convert

Requires Python 3.10 or newer.

Usage

Library

from multi_convert import convert

convert("notes.md", "notes.pdf")
convert("page.html", "page.md")

Both formats are inferred from the file extensions. convert returns the output path and raises ConversionError if the input is missing or either extension is not one of .md, .html, or .pdf.

Command line

multi-convert notes.md notes.pdf

Supported conversions

From To
Markdown HTML, PDF
HTML Markdown, PDF
PDF Markdown, HTML

Every conversion routes through Markdown as an intermediate representation. Because PDF text extraction recovers plain text only, converting from PDF loses headings, tables, and emphasis; the other five directions preserve structure.

License

MIT

Metadata

Release files for multi-convert 0.1.2

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

Source distribution (sdist)

Source distribution for multi-convert 0.1.2
File Size Uploaded
multi_convert-0.1.2.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for multi-convert 0.1.2
File Interpreter ABI Platform
multi_convert-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / multi_convert-0.1.2.tar.gz

Download URL multi_convert-0.1.2.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d335e4c58cee2f15869af0d742cee1d26ce017241e4e52b21791d73c4d3cc1aa
BLAKE2b-256 checksum
How to use checksums
06716977fed3a3184f3fc7cfdbeb379eae5e4b3d9c480bd12d85cad37d5c329e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / multi_convert-0.1.2-py3-none-any.whl

Download URL multi_convert-0.1.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
edc46f6ea3eccbb36d87370a930abe7726a9e53dc5a043d43b9d95a628beec6f
BLAKE2b-256 checksum
How to use checksums
0fcf7e48b17076063967a0ac36d261a940c759e45f74d1cd7fe08afd5cb4005e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 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