DynaPDF.GetFieldOrientation
---------------------------

Returns the orientation of a field.

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

MBS( "DynaPDF.GetFieldOrientation"; PDF; Field ) 

**MBS**( **"DynaPDF.GetFieldOrientation";** /\* Returns the orientation of a field. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Field**) /\* The field index or field name.e.g. "FirstName" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Field | The field index or field name. | "FirstName" |

### Result

Returns field orientation or error.

### Description

Returns the orientation of a field.   
The orientation is measured in degrees; it is always a multiple of 90 or 0.  
See also [GetFieldOrientation](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetFieldOrientation.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetFieldTextAlign](DynaPDFGetFieldTextAlign.md)
- [DynaPDF.GetImportOrientation](DynaPDFGetImportOrientation.md)
- [DynaPDF.GetOrientation](DynaPDFGetOrientation.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFieldOrientation](DynaPDFSetFieldOrientation.md)
- [DynaPDF.SetOrientation](DynaPDFSetOrientation.md)

This function checks for a license.

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

  
[DynaPDF.GetFieldName](DynaPDFGetFieldName.md) - [DynaPDF.GetFieldTextAlign](DynaPDFGetFieldTextAlign.md)

[HTML Version](DynaPDFGetFieldOrientation.shtml)