Metadata-Version: 2.4
Name: haiz-code2pdf
Version: 0.1.2
Summary: Render source code files as landscape PDFs laid out as book spreads.
Author-email: haiz <haiz.gigs@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/yourusername/code-to-pdf
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Pygments>=2.20.0
Requires-Dist: reportlab>=5.0.0
Requires-Dist: pillow>=12.3.0
Requires-Dist: charset-normalizer>=3.4.9
Dynamic: license-file

# haiz-code2pdf

Render source code files into landscape PDFs formatted as book spreads — featuring two columns per page, line-number gutters, and a central spine line.

Perfect for printing readable code, preparing physical code reviews, or generating clean PDF documentation.

---

## Features

* **Book-Spread Layout:** Automatically formats code into two landscape columns per page separated by a spine gutter.
* **Syntax Highlighting:** Uses [Pygments](https://pygments.org/) for full language support (defaults to high-contrast black-and-white `bw` style optimized for printing).
* **Interactive REPL Mode (`--repl`):** Interactive file and directory picker to quickly batch-convert or merge multiple files into a single PDF.
* **Git-Aware:** Respects `.gitignore` rules automatically when picking files.
* **Smart Re-Indentation:** Automatically detects existing code indentation (2, 3, 4 spaces) and re-indents to your desired tab stop.
* **Automatic Line Wrapping:** Wraps long code lines gracefully without breaking token formatting.

---

## Installation

### From PyPI
```bash
pip install haiz-code2pdf
# For help 
code-to-pdf -h
```
