AutoCropPages

Page manipulation

Description

Sets each CropBox to the page content plus a margin

Syntax

Delphi

Function AutoCropPages(Const PageRange: WideString; Margin: Double): Integer;

Parameters

PageRangePages to crop; an empty range selects every page
MarginWhitespace kept around the content box, in the current measurement units

Return value

The number of pages whose CropBox was set

Remarks

Pages without any element are skipped

See also

GetPageContentBox, SetPageBox