mdpdf-0.1.0 is not a library.
mdpdf
A fast CLI tool to convert Markdown files to PDF.
Installation
From crates.io (Recommended)
From source
Usage
Basic usage
Convert a Markdown file to PDF:
This will create document.pdf in the same directory.
Specify output file
Use the -o or --output flag to specify a custom output path:
Examples
# Convert README.md to README.pdf
# Convert with custom output name
# Convert to a different directory
Features
- 🚀 Fast - Efficient Markdown to PDF conversion
- 📝 Simple - Clean, intuitive CLI interface
- 🎨 Clean output - Suppresses verbose font loading messages
- 🔧 Flexible - Custom output paths or automatic naming
- 📦 Cross-platform - Works on macOS, Linux, and Windows
Requirements
- Rust 1.70 or later (for installation from source)
- No additional system dependencies required
How it works
mdpdf uses the markdown2pdf crate to convert Markdown content to PDF format. It automatically handles font selection and provides clean, readable PDF output.
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Acknowledgments
Built with:
- markdown2pdf - Markdown to PDF conversion
- clap - Command-line argument parsing