WinPDF.PageWidth
----------------

Queries page width.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WinPDF](component_WinPDF.md) | [13.2](newinversion132.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "WinPDF.PageWidth"; PDFRef; Page ) 

**MBS**( **"WinPDF.PageWidth";** /\* Queries page width. \*/  
**$PDFRef**; /\* The reference number for the PDF document.e.g. $PDF \*/   
**$Page**) /\* The page index.  
Zero based.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDFRef | The reference number for the PDF document. | $PDF |
| 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](WinPDFPageHeight.md)"; $pdf ; $page ) \]   
Set Variable \[ $$PageWidth ; Value: MBS ( "WinPDF.PageWidth"; $pdf ; $page ) \]  
### See also

- [WinPDF.PageHeight](WinPDFPageHeight.md)

### Example Databases

- [Win Only/WinPDF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/WinPDF.shtml#2ScriptAnchor_)

### Blog Entries

- [New in MBS FileMaker Plugin 13.2](https://www.mbsplugins.de/archive/2023-05-17/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [Windows PDF Functions](https://www.mbsplugins.de/archive/2023-04-11/Windows_PDF_Functions/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 8th March 2023 , last changed 16th April 2023

  
[WinPDF.PageRotation](WinPDFPageRotation.md) - [WinPDF.Release](WinPDFRelease.md)

[HTML Version](WinPDFPageWidth.shtml)