code-to-pdf
Converts a folder of source code to a fully syntax-highlighted PDF
Features
- Syntax highlights code (uses two-face for syntax definitions)
- Automatically handles line wrapping and page overflowing
- Fast
- Error-tolerant
- Configurable (custom file exclusions, output filename, fonts)
- Displays images
Installation
From crates.io
From this repository
Usage
Generating a PDF from a folder
This walks the current folder and generates a syntax-highlighted PDF of all files in that folder