Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WinPDF.PageWidth
Queries page width.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WinPDF | 13.2 | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |
MBS( "WinPDF.PageWidth"; PDFRef; Page ) More
Parameters
Parameter | Description | Example |
---|---|---|
PDFRef | The reference number for the PDF document. | |
Page | The page index. Zero based. |
0 |
Result
Returns OK or error.
Description
Queries page width.Gets the Portable Document Format (PDF) page's size based on its related CropBox, MediaBox, and Rotation property values.
Sizes are reported in points @ 72 dpi.
Examples
Query size of first page:
Set Variable [ $page ; Value: 0 ]
Set Variable [ $$PageHeight ; Value: MBS( "WinPDF.PageHeight"; $pdf; $page) ]
Set Variable [ $$PageWidth ; Value: MBS( "WinPDF.PageWidth"; $pdf; $page) ]
See also
Example Databases
Blog Entries
This function checks for a license.
Created 8th March 2023, last changed 16th April 2023