File size: 1,827 Bytes
2212506
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# PDF to Image (Python)

![License](https://img.shields.io/github/license/unban-algorembrant/pdf-to-image-python)
![Repo Size](https://img.shields.io/github/repo-size/unban-algorembrant/pdf-to-image-python)
![Last Commit](https://img.shields.io/github/last-commit/unban-algorembrant/pdf-to-image-python)
![Python 3.14+](https://img.shields.io/badge/python-3.14+-blue.svg)

This is a Python-based utility to convert PDF files into rendered images at high resolution. 
It converts PDFs to standard US Letter dimensions (8.5 x 11 inches) using 300 DPI by default.

This project was inspired by and serves as a Python alternative to the PHP package [spatie/pdf-to-image](https://github.com/spatie/pdf-to-image).

## Requirements

- Python 3.14+
- PyMuPDF library

## Setup Instructions

Make sure your environment is ready before running the tool:

1. Create a virtual environment:
   ```bash

   python -m venv venv

   ```
2. Activate the virtual environment:
   ```bash

   # On Windows

   venv\Scripts\activate

   ```
3. Install the dependencies:
   ```bash

   pip install -r requirements.txt

   ```

## Usage

Basic usage to convert a PDF:

```bash

python pdf_to_image.py "path/to/your/document.pdf" --output "output_folder"

```

## Citation

If you use this tool in your research or project, please cite it as follows:

```bibtex

@misc{pdf_to_image_2026,

  author = {Rembrant Oyangoren Albeos},

  title = {PDF to Image Python Utility},

  year = {2026},

  publisher = {GitHub},

  journal = {GitHub repository},

  howpublished = {\url{https://github.com/unban-algorembrant/pdf-to-image-python}},

  note = {cite: {https://github.com/unban-algorembrant/*}}

}

```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.