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.3-cp39-cp39-win_amd64.whl (1.5 MB view hashes)

Uploaded cp39

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

Uploaded cp39

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

Uploaded cp38

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

Uploaded cp38

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

Uploaded cp37

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

Uploaded cp37

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

Uploaded cp36

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

Uploaded cp36

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page