mdpdf

Crates.iomdpdf
lib.rsmdpdf
version0.1.0
created_at2025-12-02 08:18:30.165906+00
updated_at2025-12-02 08:18:30.165906+00
descriptionA fast CLI tool to convert Markdown files to PDF
homepage
repositoryhttps://github.com/skolhustick/mdpdf
max_upload_size
id1961276
size46,332
eshwarenm (skolhustick)

documentation

README

mdpdf

A fast CLI tool to convert Markdown files to PDF.

Installation

From crates.io (Recommended)

cargo install mdpdf

From source

git clone https://github.com/yourusername/mdpdf.git
cd mdpdf
cargo install --path .

Usage

Basic usage

Convert a Markdown file to PDF:

mdpdf document.md

This will create document.pdf in the same directory.

Specify output file

Use the -o or --output flag to specify a custom output path:

mdpdf document.md -o output.pdf

Examples

# 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

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:

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
Commit count: 0

cargo fmt