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.6.tar.gz
.
File metadata
- Download URL: pdf_unannotate-0.99.6.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e476b50dad3e5afd7b8d2f540af1b6de1f9b2e9f41dc60125d9ec9d621287a2 |
|
MD5 | 02d90563d8ef14d28e50f81880b49758 |
|
BLAKE2b-256 | 59751f7e6421be22de4378d5148060ec9e071e7df8c05ddecf988f667df1890f |
File details
Details for the file pdf_unannotate-0.99.6-py3-none-any.whl
.
File metadata
- Download URL: pdf_unannotate-0.99.6-py3-none-any.whl
- Upload date:
- Size: 4.6 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 | 5ab00b45578e03eb8e873b07dbf50b9854649418885462177e900a20e6decbf1 |
|
MD5 | adb3a6df56cb169b499fab88bd664506 |
|
BLAKE2b-256 | 4c0a3b232068234949df4ad0929af6112d9e1b2f1e8642586cd3ee9b11877377 |