pdfcpu

Logo

PDF tooling for Go and the command line.

View the Project on GitHub pdfcpu/pdfcpu


Changelog
Future Directions

Add Keywords

This command adds keywords or key phrases to a PDF document. Have a look at some examples.

Usage

pdfcpu keywords add inFile keyword... [flags]

Common Flags


Arguments

namedescriptionrequired
inFilePDF input file, use - to read from stdinyes
keywordsearch keyword or keyphraseyes

Examples

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