| Crates.io | mdpdf |
| lib.rs | mdpdf |
| version | 0.1.0 |
| created_at | 2025-12-02 08:18:30.165906+00 |
| updated_at | 2025-12-02 08:18:30.165906+00 |
| description | A fast CLI tool to convert Markdown files to PDF |
| homepage | |
| repository | https://github.com/skolhustick/mdpdf |
| max_upload_size | |
| id | 1961276 |
| size | 46,332 |
A fast CLI tool to convert Markdown files to PDF.
cargo install mdpdf
git clone https://github.com/yourusername/mdpdf.git
cd mdpdf
cargo install --path .
Convert a Markdown file to PDF:
mdpdf document.md
This will create document.pdf in the same directory.
Use the -o or --output flag to specify a custom output path:
mdpdf document.md -o output.pdf
# Convert README.md to README.pdf
mdpdf README.md
# Convert with custom output name
mdpdf notes.md -o formatted-notes.pdf
# Convert to a different directory
mdpdf report.md -o ~/Documents/report.pdf
mdpdf uses the markdown2pdf crate to convert Markdown content to PDF format. It automatically handles font selection and provides clean, readable PDF output.
Licensed under either of:
at your option.
Contributions are welcome! Please feel free to submit a Pull Request.
Built with: