PDFium Delphi Component Docs

FormObjectChildren method

Component: TPdf  ·  Unit: PDFium
List the page objects nested inside a Form XObject

Syntax

function FormObjectChildren(Index: Integer): TPdfPageObjectInfos;

IndexInteger. Zero-based index of a page object whose ObjectType is otForm. A different type raises EPdfError
ResultTPdfPageObjectInfos. Array of TPdfPageObjectInfo records, one per child object, in the drawing order of the form

Description

A Form XObject (ISO 32000-1 8.10) is a self-contained content stream that the page paints as one object - the usual container for reused artwork, imported pages, and flattened annotation appearances. Its children are invisible to the page-level object list, so this is the only way to inspect what such an object actually draws

Each child is described by the same record PageObjectInfo returns, including a Handle that can be passed to InsertObjectAtIndex

Child coordinates are expressed in the form space of the parent object, so the parent Matrix has to be applied before comparing them with page coordinates

See Also

PageObjectInfo, ObjectType, CreateXObjectFromPage, InsertFormObjectFromXObject