DynaPDF.GetPageNum
------------------

Returns the page number of the currently open page.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [5.0](newinversion50.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.GetPageNum"; PDF ) 

**MBS**( **"DynaPDF.GetPageNum";** /\* Returns the page number of the currently open page. \*/  
**$PDF**) /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |

### Result

Returns number or error.

### Description

Returns the page number of the currently open page.   
See also [GetPageNum](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetPageNum.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetPageBBox](DynaPDFGetPageBBox.md)
- [DynaPDF.GetPageCount](DynaPDFGetPageCount.md)
- [DynaPDF.GetPageField](DynaPDFGetPageField.md)
- [DynaPDF.GetPageLabel](DynaPDFGetPageLabel.md)
- [DynaPDF.GetPageLayout](DynaPDFGetPageLayout.md)
- [DynaPDF.GetPageMode](DynaPDFGetPageMode.md)
- [DynaPDF.GetPageWidth](DynaPDFGetPageWidth.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetPageBBox](DynaPDFSetPageBBox.md)
- [DynaPDF.SetPageMode](DynaPDFSetPageMode.md)

This function checks for a license.

Created 6th February 2015 , last changed 6th February 2015

  
[DynaPDF.GetPageMode](DynaPDFGetPageMode.md) - [DynaPDF.GetPageWidth](DynaPDFGetPageWidth.md)

[HTML Version](DynaPDFGetPageNum.shtml)