# 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](https://semver.org/). For the available versions, see the tags on this repository.
## License
This project is licensed under GPLv2, see the [LICENSE](https://raw.githubusercontent.com/vinayak-mehta/pdftopng/master/LICENSE) file for details.
Raw data
{
"_id": null,
"home_page": "https://github.com/vinayak-mehta/pdftopng",
"name": "pdftopng",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Vinayak Mehta",
"author_email": "vmehta94@gmail.com",
"download_url": null,
"platform": null,
"description": "# pdftopng\n\nA PDF to PNG conversion library (based on `pdftoppm` from `poppler`)\n\n## Installation\n\n```\n$ pip install pdftopng\n```\n\n## Usage\n\n```\nfrom pdftopng import pdftopng\n\npdftopng.convert(pdf_path=\"foo.pdf\", png_path=\"foo.png\")\n```\n\n```\n$ pdftopng /path/to/pdf /path/to/png\n```\n\n## Testing\n\nFirst, set up the development environment using:\n\n```\n$ pip install -e \".[dev]\"\n```\n\nAnd then:\n\n```\n$ pytest --verbose --cov-report term --cov-report xml --cov=pdftopng tests/test_*.py\n```\n\n## Versioning\n\n`pdftopng` uses [Semantic Versioning](https://semver.org/). For the available versions, see the tags on this repository.\n\n## License\n\nThis project is licensed under GPLv2, see the [LICENSE](https://raw.githubusercontent.com/vinayak-mehta/pdftopng/master/LICENSE) file for details.\n",
"bugtrack_url": null,
"license": "GPL-2.0",
"summary": "A PDF to PNG conversion library.",
"version": "0.2.4",
"project_urls": {
"Homepage": "https://github.com/vinayak-mehta/pdftopng"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "afc7d86885db2691d43c3f559c1506af8e80ff801fd8dff1e47c437e0ac97453",
"md5": "4055337b73841c7e9628e0f647965cb3",
"sha256": "aef365311ad3d004f168fd073b649c56c3751b1eaeb244435e3d030f203a8843"
},
"downloads": -1,
"filename": "pdftopng-0.2.4-cp310-cp310-macosx_14_0_arm64.whl",
"has_sig": false,
"md5_digest": "4055337b73841c7e9628e0f647965cb3",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": null,
"size": 2537790,
"upload_time": "2024-12-25T17:47:49",
"upload_time_iso_8601": "2024-12-25T17:47:49.287416Z",
"url": "https://files.pythonhosted.org/packages/af/c7/d86885db2691d43c3f559c1506af8e80ff801fd8dff1e47c437e0ac97453/pdftopng-0.2.4-cp310-cp310-macosx_14_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "77ee954198cd6247f7a025d6a6b65566ff5e9e45b315e569ce47a1d59f6b534d",
"md5": "6c003104f883e00be423d66ca2498dac",
"sha256": "adabef595cfc92ded5702321424e7ecb93e4b60ab4772b11cd95d3693374441f"
},
"downloads": -1,
"filename": "pdftopng-0.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "6c003104f883e00be423d66ca2498dac",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": null,
"size": 11372969,
"upload_time": "2024-12-25T17:47:52",
"upload_time_iso_8601": "2024-12-25T17:47:52.846795Z",
"url": "https://files.pythonhosted.org/packages/77/ee/954198cd6247f7a025d6a6b65566ff5e9e45b315e569ce47a1d59f6b534d/pdftopng-0.2.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b9fe615633b78c7fc014de68e0e871aeaadd2adcb1b47c48b91fe49dc1569e40",
"md5": "a05509aa25aa81a84fa02730766eb0f8",
"sha256": "d28cfe4104425389a73d7d16d3fe41d8343c8764327379b042d917a403ca8858"
},
"downloads": -1,
"filename": "pdftopng-0.2.4-cp311-cp311-macosx_14_0_arm64.whl",
"has_sig": false,
"md5_digest": "a05509aa25aa81a84fa02730766eb0f8",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": null,
"size": 2539078,
"upload_time": "2024-12-25T17:47:55",
"upload_time_iso_8601": "2024-12-25T17:47:55.169370Z",
"url": "https://files.pythonhosted.org/packages/b9/fe/615633b78c7fc014de68e0e871aeaadd2adcb1b47c48b91fe49dc1569e40/pdftopng-0.2.4-cp311-cp311-macosx_14_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "14b2cdbc95bba94363132e114334d4e6b603275f8e4442640759ade87c9a930c",
"md5": "bc629ef70e214831aeb70aa87d9d737b",
"sha256": "2b30a4de9621c9897ce0c57ad31b524ecc5afaa9c46fdb9f4ca3512b18b6db56"
},
"downloads": -1,
"filename": "pdftopng-0.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "bc629ef70e214831aeb70aa87d9d737b",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": null,
"size": 11391534,
"upload_time": "2024-12-25T17:47:58",
"upload_time_iso_8601": "2024-12-25T17:47:58.045997Z",
"url": "https://files.pythonhosted.org/packages/14/b2/cdbc95bba94363132e114334d4e6b603275f8e4442640759ade87c9a930c/pdftopng-0.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8a41adbc843b2eba72d205305f6c03778064341543d475e0473c738711f7f95a",
"md5": "851dfe116635d50efe84e2deee554acd",
"sha256": "9fc33998b128305b5b538f2dfc25f0bb8b409f9e8d494decbee3cc1849f0387b"
},
"downloads": -1,
"filename": "pdftopng-0.2.4-cp312-cp312-macosx_14_0_arm64.whl",
"has_sig": false,
"md5_digest": "851dfe116635d50efe84e2deee554acd",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": null,
"size": 2538055,
"upload_time": "2024-12-25T17:48:01",
"upload_time_iso_8601": "2024-12-25T17:48:01.592720Z",
"url": "https://files.pythonhosted.org/packages/8a/41/adbc843b2eba72d205305f6c03778064341543d475e0473c738711f7f95a/pdftopng-0.2.4-cp312-cp312-macosx_14_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d914a1b0dc09de9f624398f58d3d642831929c79b09b808300f5cf5e0bbe8ed6",
"md5": "f7115f40d10da1d32fc2a4161223401b",
"sha256": "1b37636cd82628b32fec81f346385529aa424a828bfdf65620591fbc2faceb8f"
},
"downloads": -1,
"filename": "pdftopng-0.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "f7115f40d10da1d32fc2a4161223401b",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": null,
"size": 11392209,
"upload_time": "2024-12-25T17:48:04",
"upload_time_iso_8601": "2024-12-25T17:48:04.944783Z",
"url": "https://files.pythonhosted.org/packages/d9/14/a1b0dc09de9f624398f58d3d642831929c79b09b808300f5cf5e0bbe8ed6/pdftopng-0.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1739539063efd82d1ccfc752c66f28392a09c8697cb738cf7aace3e3b1f53809",
"md5": "78081d06aa3e753913ceca6507b22b15",
"sha256": "90cd960223bc66cf207e74b3c9dbfa29277c7dd4b8a6d9d9426236b5c46b8633"
},
"downloads": -1,
"filename": "pdftopng-0.2.4-cp313-cp313-macosx_14_0_arm64.whl",
"has_sig": false,
"md5_digest": "78081d06aa3e753913ceca6507b22b15",
"packagetype": "bdist_wheel",
"python_version": "cp313",
"requires_python": null,
"size": 2538150,
"upload_time": "2024-12-25T17:48:07",
"upload_time_iso_8601": "2024-12-25T17:48:07.791070Z",
"url": "https://files.pythonhosted.org/packages/17/39/539063efd82d1ccfc752c66f28392a09c8697cb738cf7aace3e3b1f53809/pdftopng-0.2.4-cp313-cp313-macosx_14_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4807102a5cd98f364df4ce5cf7068e0140de4592f74e56d63868a129d05742ad",
"md5": "4ddf6c26aa43c2eed59e759fe84bfe00",
"sha256": "6df005d3598a1e887f25d9aabc99f9f65fb21c5fd9c06a035585b4dc9e942a03"
},
"downloads": -1,
"filename": "pdftopng-0.2.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "4ddf6c26aa43c2eed59e759fe84bfe00",
"packagetype": "bdist_wheel",
"python_version": "cp313",
"requires_python": null,
"size": 11391737,
"upload_time": "2024-12-25T17:48:11",
"upload_time_iso_8601": "2024-12-25T17:48:11.043350Z",
"url": "https://files.pythonhosted.org/packages/48/07/102a5cd98f364df4ce5cf7068e0140de4592f74e56d63868a129d05742ad/pdftopng-0.2.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "67a64e48888b277d8cf4e2d13c16d393c743ff2204842e670cae4ae50e9c09bd",
"md5": "c158e244af7a42a2bd3ae077145cf41a",
"sha256": "181a009af9718279df199a463c76c22b8608140a7ede6ad22d35b13445026750"
},
"downloads": -1,
"filename": "pdftopng-0.2.4-cp39-cp39-macosx_14_0_arm64.whl",
"has_sig": false,
"md5_digest": "c158e244af7a42a2bd3ae077145cf41a",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": null,
"size": 2537933,
"upload_time": "2024-12-25T17:48:14",
"upload_time_iso_8601": "2024-12-25T17:48:14.858669Z",
"url": "https://files.pythonhosted.org/packages/67/a6/4e48888b277d8cf4e2d13c16d393c743ff2204842e670cae4ae50e9c09bd/pdftopng-0.2.4-cp39-cp39-macosx_14_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "09e6844635705cb03ba1b5cedd41d07fda3950a8ceb500a6315b973c1b2c2b7a",
"md5": "b7f7449632d2dcb1cb66f010a031b5e8",
"sha256": "796ea70825129fa50ed31ac2f51c66412d9b64e88f8f8bc981edaa7fe6585bd9"
},
"downloads": -1,
"filename": "pdftopng-0.2.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "b7f7449632d2dcb1cb66f010a031b5e8",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": null,
"size": 11372122,
"upload_time": "2024-12-25T17:48:16",
"upload_time_iso_8601": "2024-12-25T17:48:16.946740Z",
"url": "https://files.pythonhosted.org/packages/09/e6/844635705cb03ba1b5cedd41d07fda3950a8ceb500a6315b973c1b2c2b7a/pdftopng-0.2.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-25 17:47:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "vinayak-mehta",
"github_project": "pdftopng",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pdftopng"
}