A simple CLI tool to convert PDF pages into a series of PNG/JPEG images.
- Converts every page of a PDF to a high-resolution PNG/JPEG image (approx 216 DPI).
- Names output files sequentially (e.g.,
0000.png,0001.jpeg). - Uses
PyMuPDFfor fast and self-contained rendering.
- Clone the repository.
- Create a virtual environment (recommended):
python3 -m venv venv source venv/bin/activate - Install dependencies:
pip install -r requirements.txt
python src/cli.py input.pdf --output-dir output_folderThis will generate 0000.png, 0001.png, etc., in the output_folder.
pytest