Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Returns the bounds for the specified PDF display box.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PDFKit | 2.9 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
A container value with the PDF content from a media field. Or a text with an URL. Or a PDF reference from PDFKit.Open. | |||
index | The index of the page. From zero to PDFKit.GetPDFPageCount-1. | 1 | |
box | Optionally, the PDF box to use. Can be Media Box = 0, Crop Box = 1, Bleed Box = 2, TrimBox = 3 or ArtBox = 4. If the box is not defined, we fall back to the media box. Default is 0. | 1 | Optional |
mm | Optionally. If you pass 1, we convert the rectangle to millimeters. Else we return points where 72 points are one inch. Default is 0. | 0 | Optional |
Returns four values separated with new line containing x, y, width and height.
Get media box of third page in a PDF in a container field:
MBS("PDFKit.PageBounds"; test::data; 2; 0)
Get crop box of sixth page in millimeters in a PDF with reference:
MBS("PDFKit.PageBounds"; $ref; 5; 1; 1)
This function checks for a license.
Created 18th August 2014, last changed 16th February 2015