Convert your code and markdown files into beautifully styled PDFs with syntax highlighting, headers, and footers. Perfect for sharing code snippets, documentation, or creating professional reports.
- Beautiful Syntax Highlighting: Code maintains its VS Code styling in the PDF using Highlight.js
- Markdown Support: Renders markdown files with full formatting and syntax highlighting
- Professional Layout: Clean header and footer with customizable logos, version numbers, and dates
- Page Numbers: Automatically adds page numbers to your PDFs
- Customization Options: Add your company logos, version numbers, and custom dates
- Fast & Reliable: Uses Puppeteer for high-quality PDF generation
- Open VS Code
- Press
Ctrl+P
(orCmd+P
on macOS) - Type
ext install printgenius.printgenius
- Press Enter
- Open any code file or markdown document in VS Code
- Press
Ctrl+Shift+P
(orCmd+Shift+P
on macOS) to open the Command Palette - Type "PrintGenius: Convert to PDF" and press Enter
- Optional: Enter version number and date when prompted
- Optional: Select logo images for the header
- Your PDF will be generated in the same directory as your source file
- Converts any code file to PDF while preserving syntax highlighting
- Adds professional header with optional logos
- Includes footer with version, date, and page numbers
- Renders markdown with full formatting
- Code blocks maintain syntax highlighting
- Perfect for documentation and reports
PrintGenius works out of the box with no configuration needed. However, you can customize:
- Header logos (left and right)
- Version number in footer
- Date in footer
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Found a bug? Please open an issue on our GitHub repository.
Made with ❤️ by PrintGenius Team