vinayak-mehta / pdftopng

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:GNU General Public License v2.0


Languages

Language:Python 49.6%Language:C++ 39.5%Language:Batchfile 7.0%Language:Shell 4.0%