pdfcpu

Logo

PDF tooling for Go and the command line.

View the Project on GitHub pdfcpu/pdfcpu


Changelog
Future Directions

Remove Keywords

This command removes keywords from a PDF document. Have a look at some examples.

Usage

pdfcpu keywords remove inFile [ keyword... ] [flags]

Common Flags


Arguments

namedescriptionrequired
inFilePDF input file, use - to read from stdinyes
keyword…one or more search keywords or keyphrasesno

Examples

Remove a specific keyword from test.pdf:

$ pdfcpu keywords remove test.pdf modern

Remove all keywords:

$ pdfcpu keywords remove test.pdf

Remove keywords while reading and writing the PDF through pipes:

$ aws s3 cp s3://acme-assets/brochure-tagged.pdf - \
   | pdfcpu keywords remove - - campaign-2026 \
   | aws s3 cp - s3://acme-assets/brochure-untagged.pdf