
PDF tooling for Go and the command line.
View the Project on GitHub pdfcpu/pdfcpu
This command removes keywords from a PDF document. Have a look at some examples.
pdfcpu keywords remove inFile [ keyword... ] [flags]
| name | description | required |
|---|---|---|
| inFile | PDF input file, use - to read from stdin | yes |
| keyword… | one or more search keywords or keyphrases | no |
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