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
| PageRange | A one-based range such as 1-3,7, or an empty string for every page |
|---|---|
| BoxType | 1 = MediaBox 2 = CropBox 3 = BleedBox 4 = TrimBox 5 = ArtBox; values outside 1 to 5 reject the call |
| Left | The horizontal co-ordinate of the left edge of the rectangle |
| Top | The vertical co-ordinate of the top edge of the rectangle |
| Width | The width of the rectangle |
| Height | The 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