# pdf2image A python3 module that wraps the pdftoppm utility to convert PDF to the PIL image formatt
## How to install
` pip install pdf2image `
Windows users will have to install (pdftoppm)[https://sourceforge.net/projects/poppler-win32/]
Linux users will have pdftoppm pre-installed with the distro (Tested on Ubuntu and Archlinux)
## How does it work? ` from pdf2image import convert_from_path, convert_from_bytes `
Then simply do:
` images = convert_from_path(‘/home/kankroc/example.pdf’) `
OR
` images = convert_from_bytes(open(‘/home/kankroc/example.pdf’, ‘rb’).read()) `
images will be a list of PIL Image representing each page of the PDF document.
## Limitations / known issues
A relatively big PDF will use up all your memory and cause the process to be killed
pdftoppm errors are not handled
Not Python 2 compatible
Metadata
Release files for pdf2image 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pdf2image-0.1.0.tar.gz | 2.2 kB | Details |
Release files / pdf2image-0.1.0.tar.gz
| Download URL | pdf2image-0.1.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68711adad850ec26738c0bfe0f6d6e6b6376a3f2bd5f6c47f0e0d8beab59d59e
|
|
BLAKE2b-256 checksum How to use checksums |
a24f68c8be0b5ee5af7e93d2cb4b9832968aa9caa9b2aad1e5c841a94f48ef21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |