DynaPDF.SetFieldOrientation
---------------------------

The function sets or changes 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.SetFieldOrientation"; PDF; Field; Value ) 

**MBS**( **"DynaPDF.SetFieldOrientation";** /\* The function sets or changes 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" \*/   
**$Value**) /\* The orientation value.e.g. 90 \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

The function sets or changes the orientation of a field.   
The parameter Value must a multiple of 90 or 0. Positive values rotate the field counter clockwise, negative values clockwise.  
See also [SetFieldOrientation](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetFieldOrientation.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetFieldOrientation](DynaPDFGetFieldOrientation.md)
- [DynaPDF.GetImportOrientation](DynaPDFGetImportOrientation.md)
- [DynaPDF.GetOrientation](DynaPDFGetOrientation.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFieldTextAlign](DynaPDFSetFieldTextAlign.md)
- [DynaPDF.SetOrientation](DynaPDFSetOrientation.md)
- [DynaPDF.SetOrientationEx](DynaPDFSetOrientationEx.md)

This function checks for a license.

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

  
[DynaPDF.SetFieldName](DynaPDFSetFieldName.md) - [DynaPDF.SetFieldTextAlign](DynaPDFSetFieldTextAlign.md)

[HTML Version](DynaPDFSetFieldOrientation.shtml)