repo2pdf
repo2pdf is a command-line utility and web tool designed to convert GitHub repositories into well-formatted, navigable PDF documents. It automates the workflow of cloning repositories, parsing code files, and generating static PDFs suitable for offline reference, code reviews, teaching materials, archiving, and AI training datasets. Users can interact with the tool via NPX for quick execution or by cloning the source for local configuration. The application supports both remote GitHub URLs and local file paths. Key customization features include toggling line numbers and page numbers, applying syntax highlighting, removing code comments and empty lines, and choosing between a single consolidated PDF or individual files per document. Available as an NPM package and through a web interface at repo2pdf.site, repo2pdf bridges the gap between dynamic codebases and universally accessible documentation, making it ideal for developers, educators, and researchers who need portable code representations.