pdfcpu

Logo

PDF tooling for Go and the command line.

View the Project on GitHub pdfcpu/pdfcpu


Changelog
Future Directions

List Attachments

A PDF attachment is any file previously attached to a PDF document. This command outputs a list of all attachments. Have a look at some examples.

Usage

pdfcpu attachments list inFile [flags]

Common Flags


Arguments

namedescriptionrequired
inFilePDF input file, use - to read from stdinyes

Examples

List all attachments embedded into container.pdf. You may attach any file to a PDF document. Any available attachment description will be shown in braces:

$ pdfcpu attachments list container.pdf
forest.jpg
pdfcpu.zip (description1)
invoice.pdf (description2)

List attachments for a streamed PDF:

$ aws s3 cp s3://acme-archive/report.pdf - \
   | pdfcpu attachments list -