DynaPDF.GetOrientation
----------------------

Queries orientation of current page.

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

MBS( "DynaPDF.GetOrientation"; PDF ) 

**MBS**( **"DynaPDF.GetOrientation";** /\* Queries orientation of current 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 OK or error message.

### Description

Queries orientation of current page.  
The function returns the orientation of the current open page if an open page was detected or the default orientation for newly created pages if no open page was detected.  
The orientation is measured in degrees; it is also always a multiple of 90 or 0.  
See also [GetOrientation](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetOrientation.shtml) function in DynaPDF manual.

### Examples

Rotate coordinate system as needed:

 Set Variable \[ $r ; Value:MBS ("[DynaPDF.SetOrientationEx](DynaPDFSetOrientationEx.md)"; $pdf ; MBS ("DynaPDF.GetOrientation"; $pdf )) \]  
### See also

- [DynaPDF.GetAnnotation](DynaPDFGetAnnotation.md)
- [DynaPDF.GetImportOrientation](DynaPDFGetImportOrientation.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.Parser.DeleteText](DynaPDFParserDeleteText.md)
- [DynaPDF.Parser.FindText](DynaPDFParserFindText.md)
- [DynaPDF.RotateCoords](DynaPDFRotateCoords.md)
- [DynaPDF.RotateTemplate](DynaPDFRotateTemplate.md)
- [DynaPDF.SetFieldOrientation](DynaPDFSetFieldOrientation.md)
- [DynaPDF.SetOrientation](DynaPDFSetOrientation.md)
- [DynaPDF.SetOrientationEx](DynaPDFSetOrientationEx.md)

### Example Databases

- [DynaPDF/Find and Replace Text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Find%20and%20Replace%20Text.shtml#9ScriptAnchor_)

### Blog Entries

- [Retract text from a PDF with DynaPDF](https://www.mbsplugins.de/archive/2025-11-01/Retract_text_from_a_PDF_with_D/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 5th March 2026

  
[DynaPDF.GetOpacity](DynaPDFGetOpacity.md) - [DynaPDF.GetOutputIntent](DynaPDFGetOutputIntent.md)

[HTML Version](DynaPDFGetOrientation.shtml)