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.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 multi-convert 0.1.0
File Size Uploaded
multi_convert-0.1.0.tar.gz 6.2 kB Details

Built distribution (wheel)

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

Total release size: 11.3 kB

Release files / multi_convert-0.1.0.tar.gz

Download URL multi_convert-0.1.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
190b653ed27ff7335a4f66fcb682b2180c92381e5a9bd652ed4af389a4357aec
BLAKE2b-256 checksum
How to use checksums
0242d664a291b6ad42bfea632dd629e29fe5b10e5716303d9be742982b6f977e
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.0-py3-none-any.whl

Download URL multi_convert-0.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a935abe14fb39b705fc5d7dfd6f8f9a415f549eb9772afa2c2fbfb2f3904cfcc
BLAKE2b-256 checksum
How to use checksums
fb26c46bb07a5341d81e7c426aa824700424b0c93ed21187f919dc12c1a3de22
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

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

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