WinPDF.PagePreferredZoom
------------------------

Gets the Portable Document Format (PDF) page's preferred magnification factor.

| 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.PagePreferredZoom"; PDFRef; Page ) 

**MBS**( **"WinPDF.PagePreferredZoom";** /\* Gets the Portable Document Format (PDF) page's preferred magnification factor. \*/  
**$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 number or error.

### Description

Gets the Portable Document Format (PDF) page's preferred magnification factor.  
### Examples

Query page zoom for first page:

 Set Variable \[ $page ; Value: 0 \]   
Set Variable \[ $PageZoom ; Value: MBS ( "WinPDF.PagePreferredZoom"; $pdf ; $page ) \]  
### 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)

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

  
[WinPDF.PageImageAtSize](WinPDFPageImageAtSize.md) - [WinPDF.PageRotation](WinPDFPageRotation.md)

[HTML Version](WinPDFPagePreferredZoom.shtml)