pdf-wrangler
PDFMiner wrapper used to simplify PDF extraction and other PDF utilities.
Document class
The Document class is used to represent a PDF document. It contains functionality to access the raw text by page, PDF metadata and images in the form of PDFMiner's LTImage object.
Example Usage
from pdf_wrangler import Document
pdf_document = Document('path/to/pdf.pdf')
# to access pdf metadata
pdf_document.get_metadata()
# to access full pdf text
pdf_document.get_text()
# print text by pdf page
for page in pdf_document.pages:
print(page.get_text())
# to access pdf images by page
page_1_images = pdf_document.pages[0].images
# get first image bytes representation
page_1_images[0].stream.get_data()
Installation
To install, run:
pip install pdf-wrangler
Metadata
Release files for pdf-wrangler 0.0.31
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pdf_wrangler-0.0.31.tar.gz | 3.9 kB | Without provenance | Details for pdf_wrangler-0.0.31.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdf_wrangler-0.0.31-py3-none-any.whl | Python 3 | none | any | Details for pdf_wrangler-0.0.31-py3-none-any.whl |
Total release size: 8.2 kB
Release files / pdf_wrangler-0.0.31.tar.gz
| Download URL | pdf_wrangler-0.0.31.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d501cb9a19b2b988d565408c4807a2614d96e6fb44d319196e7ea5f35fcbffa
|
|
BLAKE2b-256 checksum How to use checksums |
3d400a96008339f3e970546fb3d9bce4c5c3e62530859c7c3d53d9b57dc25e62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Release files / pdf_wrangler-0.0.31-py3-none-any.whl
| Download URL | pdf_wrangler-0.0.31-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e06b18378569ccb49de4b0cce41531558decf1a38ae2f4171bedf27e529471d
|
|
BLAKE2b-256 checksum How to use checksums |
bfb1d665c8b639e1b45096d37f6a70241ec42cba4fddebc49d8e62c25c05fc99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Security for pdf-wrangler 0.0.31
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.