
PDF tooling for Go and the command line.
View the Project on GitHub pdfcpu/pdfcpu
This command adds keywords or key phrases to a PDF document. Have a look at some examples.
pdfcpu keywords add inFile keyword... [flags]
| name | description | required |
|---|---|---|
| inFile | PDF input file, use - to read from stdin | yes |
| keyword | search keyword or keyphrase | yes |
Adding a key phrase and a keyword. Put key phrases under single quotes:
$ pdfcpu keywords add in.pdf 'Tom Sawyer' classic
Add keywords while reading and writing the PDF through pipes:
$ aws s3 cp s3://acme-assets/brochure.pdf - \
| pdfcpu keywords add - - approved campaign-2026 \
| aws s3 cp - s3://acme-assets/brochure-tagged.pdf