Signature: Wojciech Balcer
The Markdown to PDF Generator is a Rust-based tool designed to convert Markdown files into fully-formatted PDF documents. With support for titles, signatures, footers, code blocks, tables of contents, and more.
Automatically generates a header with the title and a footer with page numbers and customizable text.
Dynamically generates a Table of Contents based on the headers in your Markdown file.
Preserves and styles code blocks for a professional look in the PDF.
Automatically paginates content and manages space efficiently.
Allows embedding signatures and custom footer text.
- Install Rust and Cargo if not already installed:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Clone this repository:
git clone https://github.com/wbalcer/markdown-to-pdf.git cd markdown-to-pdf
- Build this project:
cargo build --release
- Run the binary:
./target/release/markdown-to-pdf
To sign the file just change the line with "Signature:" for your own signature.
The last line of the markdown file will act as the footer
To test:
cargo run <input_file> <output_file>
PDF generated by wbalcer markdown-to-pdf