GetPageContentBox

Page manipulation

Description

Unions the bounds of all page elements

Syntax

Delphi

Function GetPageContentBox(Page: Integer; Out Left, Top, Width, Height: Double): Integer;

Parameters

Page1-based page number
Left, Top, Width, HeightReceive the union box in top-down page coordinates

Return value

1 when at least one element was found, 0 otherwise

Remarks

Text, image and path elements all contribute to the union; annotations are not part of the content box

See also

EnumPageElements, AutoCropPages