EnumImagePlacements

Content stream editing

Description

Walks the program tracking the CTM (cm/q/Q) and, for every Do (coXObject) operator, computes the image placement rectangle by mapping the 1x1 unit square through the current CTM

Syntax

Delphi

Function TPDFContentProgram.EnumImagePlacements: TPDFImagePlacementArray;

Return values

A TPDFImagePlacementArray with the placements in instruction order

Remarks

The XObjectName field lets the caller match each Do back to a /Resources/XObject entry and thus to a TPDFImage

See also

TPDFContentProgram, FindInstructionsInRect, ParsePageContentLayer, TPDFImagePlacement