Skip to main content

A PDF to PNG conversion library.

Project description

pdftopng

A PDF to PNG conversion library (based on pdftoppm from poppler)

Installation

$ pip install pdftopng

Usage

from pdftopng import pdftopng

pdftopng.convert(pdf_path="foo.pdf", png_path="foo.png")
$ pdftopng /path/to/pdf /path/to/png

Testing

First, set up the development environment using:

$ pip install -e ".[dev]"

And then:

$ pytest --verbose --cov-report term --cov-report xml --cov=pdftopng tests/test_*.py

Versioning

pdftopng uses Semantic Versioning. For the available versions, see the tags on this repository.

License

This project is licensed under GPLv2, see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pdftopng-0.2.1-cp39-cp39-win_amd64.whl (1.5 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

pdftopng-0.2.1-cp39-cp39-win32.whl (1.3 MB view hashes)

Uploaded CPython 3.9 Windows x86

pdftopng-0.2.1-cp39-cp39-manylinux2010_x86_64.whl (11.5 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

pdftopng-0.2.1-cp39-cp39-macosx_10_9_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

pdftopng-0.2.1-cp38-cp38-win_amd64.whl (1.5 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

pdftopng-0.2.1-cp38-cp38-win32.whl (1.3 MB view hashes)

Uploaded CPython 3.8 Windows x86

pdftopng-0.2.1-cp38-cp38-manylinux2010_x86_64.whl (11.5 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

pdftopng-0.2.1-cp38-cp38-macosx_10_9_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

pdftopng-0.2.1-cp37-cp37m-win_amd64.whl (1.5 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

pdftopng-0.2.1-cp37-cp37m-win32.whl (1.3 MB view hashes)

Uploaded CPython 3.7m Windows x86

pdftopng-0.2.1-cp37-cp37m-manylinux2010_x86_64.whl (11.5 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

pdftopng-0.2.1-cp37-cp37m-macosx_10_9_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

pdftopng-0.2.1-cp36-cp36m-win_amd64.whl (1.5 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

pdftopng-0.2.1-cp36-cp36m-win32.whl (1.3 MB view hashes)

Uploaded CPython 3.6m Windows x86

pdftopng-0.2.1-cp36-cp36m-manylinux2010_x86_64.whl (11.5 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

pdftopng-0.2.1-cp36-cp36m-macosx_10_9_x86_64.whl (2.1 MB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page