Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Queries page size for a PDF page.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
(old name: DynaPDF.GetPageBounds)
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
PageIndex | The page index in range from 1 to DynaPDF.GetPageCount. | 1 | |
Box | Which box to use. Default is Mediabox. You can pass MediaBox, CropBox, ArtBox, BleedBox or TrimBox. |
"MediaBox" | Optional |
Returns rectangle as string with four numbers for left, top, right and bottom.
See also GetPageBBox function in DynaPDF manual.
Queries crop size of page 5 from current working PDF:
$r = MBS( "DynaPDF.GetPageBBox"; $PDF; 5; "CropBox" )
This function checks for a license.
Created 18th August 2014, last changed 14th June 2022