pdfcpu

Logo

PDF tooling for Go and the command line.

View the Project on GitHub pdfcpu/pdfcpu


Changelog
Future Directions

List Annotations

This command prints a list of annotations by type for selected pages.

Have a look at some examples.

Usage

pdfcpu annotations list inFile [flags]

Flags

namedescriptionrequired
jsonoutput JSONno
p(ages)selected pagesno

Common Flags


Arguments

namedescriptionrequired
inFilePDF input file, use - to read from stdinyes

Examples

List all annotations of test.pdf:

$ pdfcpu annotations list test.pdf
4 annotations available

Page 3:

  Link:
     obj#                 rect id              content
    ==================================================
      539 (230, 610, 365, 625)    https://www.abc.com/
      538 (271, 637, 326, 693)    https://www.def.com/

Page 4:

  Link:
     obj#                 rect id    content
    ========================================
      563 ( 70, 354, 197, 377)    (internal)
      575 ( 70, 634, 120, 657)    (internal)

List annotations for a streamed PDF:

$ aws s3 cp s3://acme-redaction/review.pdf - \
   | pdfcpu annotations list -