New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

multi-convert

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multi-convert

A python package for converting multiple document formats

pipPyPI
Version
0.1.5
Weekly downloads
20
-25.93%
Maintainers
1
Weekly downloads
 
Created

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

FromTo
MarkdownHTML, PDF
HTMLMarkdown, PDF
PDFMarkdown, 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

FAQs

Related posts