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.3

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.3
File Size Uploaded
multi_convert-0.1.3.tar.gz 6.4 kB Details

Built distribution (wheel)

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

Total release size: 11.5 kB

Release files / multi_convert-0.1.3.tar.gz

Download URL multi_convert-0.1.3.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2a097b267711f1812ec84b81f8f70268d1b6b460535ab891149601025099aa81
BLAKE2b-256 checksum
How to use checksums
36d450e732e768f26b016722d7c28b565b0ca344b498567c05f11e5f700888b2
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.3-py3-none-any.whl

Download URL multi_convert-0.1.3-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7056227492783d70e4f7771acac8f8aaa8bca447e6fe77fffaa4ffd2fe7a5161
BLAKE2b-256 checksum
How to use checksums
7e63abe27bf47830b762abc7f1c597b92776cdb95830671707023a18ac95a792
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

This release

0.1.3 This release

2 release files

0.1.2

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