Code to PDF illustration

Code2PDF

Convert your codebase into beautifully formatted, syntax-highlighted PDFs directly from your terminal. Perfect for documentation, sharing, or showcasing your work.

  • One-command CLI tool
  • Built with Pandoc + XeLaTeX
  • Output ready for print or portfolio

How It Works

  1. Download and install the Code2PDF tool.
  2. Open your terminal (Command Prompt, PowerShell, etc.).
  3. Navigate to your codebase directory using cd.
  4. Run the command code2pdf.
  5. The PDF will be generated in the current folder.

Live Terminal Demo

Files (in /projects)

    Terminal
    /projects> ls - app.py - utils.py - README.md