PDFium Delphi Component Docs

AnnotationObjectInfo method

Component: TPdf  ·  Unit: PDFium
Reads back the attributes of a single page object owned by an annotation

Syntax

function AnnotationObjectInfo(Index, ObjectIndex: Integer): TPdfPageObjectInfo;

IndexInteger. Zero-based index of the annotation on the current page
ObjectIndexInteger. Zero-based index of the object within that annotation, below AnnotationObjectCount
ResultTPdfPageObjectInfo. The same snapshot record PageObjectInfo returns for page content: handle, type, bounds, matrix, colours, stroke width, line style, and dash pattern

Description

Gives an annotation the same level of inspection page content already has. An ink annotation, for example, reports one path object per stroke, each with its own colour and width

The Handle field can be handed to UpdateAnnotationObject after the object has been edited through PDFium

Coordinates are in PDF page units, matching the annotation rectangle rather than the appearance-stream space

See Also

AnnotationObjectCount, PageObjectInfo, UpdateAnnotationObject, Annotation