dump_data_annots

Dump annotation info in pdftk style

Usage

pdftl <input> dump_data_annots [output <output>]

Details

Extracts annotations and prints them in a text-based stanza format, designed to be compatible with pdftk’s output.

This operation filters the output to standard annotation types (Link, Text, Widget, Popup, FreeText, Square, URI, FileAttachment). It explicitly excludes JavaScript actions.

Stanza Format

Entries are separated by ---. Common keys include:

  • AnnotSubtype: The type of annotation (e.g., Link, Text).

  • AnnotRect: The bounding box [x y w h].

  • AnnotPageNumber: The page number containing the annotation.

Use this operation for legacy compatibility or simple textual analysis. For a complete dataset, use dump_annots.

Examples

Show annotation data for a file:

pdftl in.pdf dump_data_annots

Tags: in_place, annotations, info

Source: pdftl.operations.annots_filters

Read online: https://pdftl.readthedocs.io/en/stable/operations/dump_data_annots.html

Type: Operation