PDFMiner Wrapper & Other PDF utilities
Project description
pdf-wrangler
PDFMiner wrapper used to simplify PDF extraction. More functionalities to come to make it a more general purpose PDF utility tool.
Document Module
The Document
module provides a class with the same name used to represent a PDF document. The primary pages
attribute contains extracted text and images compatible with Pillow Images.
PDF metadata can also be accessed through the metadata
attribute.
Example Usage
from pdf_wrangler import Document
pdf_document = Document('path/to/pdf', password='optional password')
# to access pdf metadata
pdf_document.metadata
# to access pdf text & images by pages (iterable)
pdf_document.pages
# text on the first page
pdf_document.pages[0].text
Installation
To install, run:
pip install pdf-wrangler
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdf_wrangler-0.0.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for pdf_wrangler-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fa08834cdfe3e298b4afa7397d3dbc48b9856dc090068f9e621f67687fef5e5 |
|
MD5 | 9a27c81310d2019f6f61dd6dabf902bf |
|
BLAKE2b-256 | d732ab2786403e75eaa14de6df3ba21c8f8ccf8c7ecf1eddafb433722b4b721c |