Utilities to extract and merge PDF annotations
Project description
pdf_annot
Utilities to extract and merge PDF annotations
Installation
python setup.py install # or pip install pdf_annot
Usage
extract annotations from PDF and save as JSON
python -m pdf_annot.extract --pdf "path/to/pdf"
cmd usage
python -m pdf_annot.extract -h
usage: extract annotations from PDF and save as JSON in the same folder
[-h] -p PDF
optional arguments:
-h, --help show this help message and exit
-p PDF, --pdf PDF
attach JSON annotations to an exsiting PDF
python -m pdf_annot.attach -p "path/to/pdf" -a "path/to/first/annot/json" ["path/to/second/annot/json"] ...
cmd usage
python -m pdf_annot.attach -h
usage: attach JSON annotations to a PDF and save a new PDF in the same folder (with '- annotated' appended)
[-h] -p PDF [-a ANNOTS [ANNOTS ...]] [--prune]
optional arguments:
-h, --help show this help message and exit
-p PDF, --pdf PDF
-a ANNOTS [ANNOTS ...], --annots ANNOTS [ANNOTS ...]
annotation jsons, one annotation per line
--prune prune old annotations from the pdf
Notes
At the moment, only textual kind of annotations are supported. For more information, please view annotation.py
.
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_annot-0.1.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
pdf_annot-0.1.0-py3-none-any.whl
(16.5 kB
view hashes)
Close
Hashes for pdf_annot-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d72af5120918e88a9b8434c716cf1b228660bff4c4df410b43a3c69ae5ef8db |
|
MD5 | 6fd3ce35d51ef238a852d06caf616380 |
|
BLAKE2b-256 | 5c16b4ee18c25a27875aa79f2b22593d138f087cb69bcc777d7e387cd1f7d3cf |