DynaPDF.GetImportOrientation
----------------------------

Queries orientation for input page.

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

MBS( "DynaPDF.GetImportOrientation"; PDF; Page ) 

**MBS**( **"DynaPDF.GetImportOrientation";** /\* Queries orientation for input page. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Page**) /\* The page index from 0 to [DynaPDF.GetImportPageCount](DynaPDFGetImportPageCount.md)-1.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Page | The page index from 0 to [DynaPDF.GetImportPageCount](DynaPDFGetImportPageCount.md)-1. | 0 |

### Result

Returns OK or error message.

### Description

Queries orientation for input page.  
The function returns the orientation of a specific page within the currently open import file.  
If the function succeeds the return value is the orientation of the page in degrees. Possible values are 0, 90, 180, 270, or the same values as negative numbers. If the function fails, it returns an error.  
See also [GetImportOrientation](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetInOrientation.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetFieldOrientation](DynaPDFGetFieldOrientation.md)
- [DynaPDF.GetImportPageCount](DynaPDFGetImportPageCount.md)
- [DynaPDF.GetImportPDFVersion](DynaPDFGetImportPDFVersion.md)
- [DynaPDF.GetOrientation](DynaPDFGetOrientation.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFieldOrientation](DynaPDFSetFieldOrientation.md)

### Example Databases

- [DynaPDF/Generate Previews](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Generate%20Previews.shtml#3ScriptAnchor_)

### Blog Entries

- [Normalize PDF orientation with MBS Plugins and DynaPDF](https://www.mbsplugins.de/archive/2018-03-09/Normalize_PDF_orientation_with/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.GetImportFlags2](DynaPDFGetImportFlags2.md) - [DynaPDF.GetImportPDFVersion](DynaPDFGetImportPDFVersion.md)

[HTML Version](DynaPDFGetImportOrientation.shtml)