Parsing PDF files with PDFium
Project description
redstork
PDF Parsing library, based on PDFium.
Requirements
- Fairly recent Linux (Ubuntu 18.04 or better). Support for other platforms is in the works.
- Python 3
Installation
pip install redstork
Quick start
Download a sample PDF file from here: https://github.com/innodatalabs/redstork/blob/master/redstork/test/resources/sample.pdf
from redstork import Document
doc = Document('sample.pdf')
print('Number of pages:', len(doc))
>> Number of pages: 15
print('MediaBox of the first page is:', doc[0].media_box)
>> MediaBox of the first page is: (0.0, 0.0, 612.0, 792.0)
print('Rotation of the first page is:', doc[0].rotation)
>> Rotation of the first page is: 0
doc[0].render('page-0.ppm', scale=2) # render page #1 as image
API docs
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
redstork-0.0.15-py3-none-any.whl
(19.1 MB
view hashes)
Close
Hashes for redstork-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eba69863dc65c936da5bc886adff2c8702e90b21ff9de2e8fd3b77f422dce86 |
|
MD5 | 42ce3cca4062e745a741f4454465a9e5 |
|
BLAKE2b-256 | a239b6ecf1995c4ba34d76bc5f799043b78416d8e92eb1924cb6262233d931bf |