SetPageBoxRange

Page properties

Description

Applies one boundary box to every page selected by a page-range expression

Syntax

Function TPDFlib.SetPageBoxRange(Const PageRange: WideString; BoxType: Integer; Left, Top, Width, Height: Double): Integer;

Parameters

PageRangeA one-based range such as 1-3,7, or an empty string for every page
BoxType1 = MediaBox 2 = CropBox 3 = BleedBox 4 = TrimBox 5 = ArtBox; values outside 1 to 5 reject the call
LeftThe horizontal co-ordinate of the left edge of the rectangle
TopThe vertical co-ordinate of the top edge of the rectangle
WidthThe width of the rectangle
HeightThe height of the rectangle

Return values

Returns the number of pages updated

Remarks

The range is parsed once, the document coordinate settings are honoured, and the selected page is restored

See also

SetPageBox, RemovePageBoxRange