Command line script to easily remove annotations from PDFs.
Project description
pdf-unannotate
pdf-unannotate
facilitates easily removing annotations from PDFs using PyPDF2
.
Usage
After installing using pip
, you can run pdf-unannotate
as a command. It takes a single glob expression as an argument, and it will remove annotations from all PDFs matching the glob.
If you need to include spaces in a file name, make sure to escape them by using single quotes. If you do not escape the glob expression using single quotes, make sure to escape any *
in the glob expression with a backslash, since otherwise they will be expanded by the shell before pdf-unannotate gets them.
regex
: (optional) only PDFs with filenames matchingregex
will have annotations removed.- (
pattern
): (required, not named) a glob expression that matches PDFs to remove annotations from. Only files ending in.pdf
that match the glob will be included. If a glob expression is insufficient to filter to just the scripts you want, you should use theregex
argument.
Description
pdf-unannotate
finds all .pdf
files matching pattern
(and regex
, if provided). If PDFs are found, it removes annotations from them one-by-one using PyPDF2.
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
Built Distribution
File details
Details for the file pdf_unannotate-0.99.tar.gz
.
File metadata
- Download URL: pdf_unannotate-0.99.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b488c7b732bd6d7dbeaae0d73619c3934c58fb181941e74d9f5123d1362b911f |
|
MD5 | 8f3e69983c1586195d38b736dd2bee51 |
|
BLAKE2b-256 | d08cc3e929239952f434d4dd2e559ae8e4e3bc8a915dbb86d0cfc220ede808dd |
File details
Details for the file pdf_unannotate-0.99-py3-none-any.whl
.
File metadata
- Download URL: pdf_unannotate-0.99-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b9242994745ed441d55e1b983497a986456890dd1cd9bb1b36375099709b3b3 |
|
MD5 | c995d1ba7c25cf7b562e0621936d7f3b |
|
BLAKE2b-256 | 6c41fe9696bad649398bba8e89365b5fdfbd39e859c81a4b67f1abc055ad9c47 |