Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Queries bound box values of current page.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 6.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.GetBBox"; PDF; box; Selector { ; Unit } )   More


Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
box Which box to set. Can be Art, Bleed, Crop, Trim or Media. "Media"
Selector What value to return.
Can be Left, Right, Bottom or Top to get the coordinates.
Can be Width and Height to get the size of page in points.
Can be Exists to check if the given page bound exists. Returns 1 or 0.
Unit The unit to return values with.
Default is points (72 dpi raster).
You can pass "point", "cm" or "mm".
If an user unit is used, we include it int he calculation for meters.
"point" Optional


Returns value or error.


Queries bound box values of current page.
This function returns a bounding box of a PDF page. A PDF page may be prepared either for a finished medium, such as a sheet of paper, or as part of a prepress process in which the content of the page is placed on an intermediate medium, such as film or an imposed reproduction plate.

In the latter case, it is important to distinguish between the intermediate page and the finished page. The intermediate page may often include additional production-related content, such as bleeds or printer marks that falls outside the boundaries of the finished page. To handle such cases, a PDF page can define as many as five separate boundaries to control various aspects of the imaging process.

The function requires an open page because each page can use its own boundaries. Please use DynaPDF.EditPage to edit a page.

See also GetBBox function in DynaPDF manual.


Query with of crop box in millimeter:

MBS( "DynaPDF.GetBBox"; $pdf; "crop"; "Width"; "mm")

See also

Example Databases

Blog Entries

This function checks for a license.

Created 19th July 2016, last changed 31st July 2016

DynaPDF.GetAscent - DynaPDF.GetBookmark