function PageObjectClipPath(Index: Integer): TPdfClipPath;
| Index | Integer. Zero-based index of the page object |
| Result | TPdfClipPath. Record whose Paths array holds one TPdfPathSegments array per sub-path of the clip. An empty array means the object is not clipped |
A clip path can consist of several sub-paths, so the result is an array of segment arrays. Each segment carries its type (move, line or Bezier), its point and whether it closes the sub-path - the same shape PathInfo returns for a drawn path
Coordinates are in PDF page units. Because the clip belongs to the graphics state that was active when the object was painted, it is reported per object rather than per page
An object with no clip yields an empty Paths array, which is a normal result and not an error