Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

DynaPDF.GetPageBounds

Queries page size for a PDF page.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 3.0 Yes Yes Yes Yes Yes

MBS( "DynaPDF.GetPageBounds"; PDF; PageIndex { ; Box } )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
PageIndex The page index in range from 1 to DynaPDF.GetPageCount. 1
Box Optional
Optional, which box to use. Default is Mediabox. You can pass MediaBox, CropBox, ArtBox, BleedBox or TrimBox.
"MediaBox"

Result

Returns rectangle as string with four numbers for left, top, right and bottom.

Description

Queries page size for a PDF page.
Please note that we have DynaPDF.GetPageBounds for the current working PDF and the DynaPDF.GetImportPageBounds for the current open import PDF.

Examples

Queries crop size of page 5 from current working PDF:

$r = MBS( "DynaPDF.GetPageBounds"; $PDF; 5; "CropBox" )

See also


DynaPDF.GetPageAnnotation   -   DynaPDF.GetPageCoords

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins