Registry / devops / pdftopng

pdftopng

JSON →
library0.2.4pypypiunverified

A Python library for converting PDF pages to PNG images using poppler-utils. Current version 0.2.4, with irregular releases.

pip install pdftopng
INSTALL
IMPORT
SIG · PDFTOPNG
P
pdftopng
devopspythonv0.2.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

convert_pdf_to_png
from pdftopng import convert_pdf_to_png
from pdftopng import convert_pdf_to_png

Converts each page of a PDF into a separate PNG file. Returns list of generated filenames.

from pdftopng import convert_pdf_to_png # Convert all pages of a PDF to PNG images png_files = convert_pdf_to_png('example.pdf', 'output_folder') print(png_files)
Debug
Known issues
gotchaSystem dependency: Requires poppler-utils (specifically pdftoppm) to be installed. Not a pure-Python library.
fix
Install poppler-utils via system package manager (e.g., apt-get install poppler-utils on Ubuntu, brew install poppler on macOS).
affects: all
gotchaOutput directory must exist; the library does not create it automatically.
fix
Ensure the output directory exists before calling convert_pdf_to_png.
affects: all
deprecatedThe library uses pdftoppm which may have version-specific flags. No active maintenance recently, may not work with newer poppler versions.
fix
Consider alternatives like pdf2image or PyMuPDF for better compatibility.
affects: 0.2.4
Upgrade
Version history
0.2.4latest on PyPI · released Dec 25, 2024
Audit
Dependencies
poppler-utilsrequiredRequired system binary for PDF conversion
Agent activity
2 hits · last 30 days
node
2
Resources
pdftopng — pip install pdftopng · libregistry