Skip to main content

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 matching regex 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 the regex 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdf_unannotate-0.99.9.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

pdf_unannotate-0.99.9-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pdf_unannotate-0.99.9.tar.gz.

File metadata

  • Download URL: pdf_unannotate-0.99.9.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for pdf_unannotate-0.99.9.tar.gz
Algorithm Hash digest
SHA256 b637ad1431f5eeb07460c36802680ba1bbb402144345c16e81c7e6d5277c5e7a
MD5 1bf8aa92ce8142a0de3db3af2623667c
BLAKE2b-256 82b737c7c19375fad8ca319b5f4bd086a8c7a8ab2c4d04f8428a06deb4678f9d

See more details on using hashes here.

File details

Details for the file pdf_unannotate-0.99.9-py3-none-any.whl.

File metadata

File hashes

Hashes for pdf_unannotate-0.99.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e8c3616a2912a80828feacfdbe794f10f753fd4efd8eb495cc45580774fcd055
MD5 ca31ca9f40f2f0bbdb031cebb07c4cd2
BLAKE2b-256 610af602e2e1bc2bfbc79a8d871bbc91994d6cd7f0144e23c0a5a686fbb7dcf2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page