Qu

pdf.annotations

Builtin index · File I/O

pdf.annotations(src, page)

Input: src, page · Output: no output

What it is

A page's annotations as a List of Records: index (Num, the handle pdf.remove_annotation takes), type (Str, the annotation's /Subtype verbatim — "Text", "Square", "Highlight", "Link", ...), rect (Vec of 4 numbers, [x0, y0, x1, y1]), and text (Str, or none where the annotation carries no /Contents). An empty List, not an error, for a page with none.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
pdf.annotations(src, page)
src —not documented yet
page List, Record, Num, Str, Vec, or numberA page's annotations as a List of Records: index (Num, the handle pdf.remove_annotation takes), type (Str, the annotation's /Subtype verbatim — "Text", "Square", "Highlight", "Link", ...), rect (Vec of 4 numbers, [x0, y0, x1, y1]), and text (Str, or none where the annotation carries no /Contents).
not documented yet—

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.

How it works

Annotations/links.

From the note above this builtin in the interpreter, where the reasoning was written down as it was built.