DynaPDF.SetFieldBBox
--------------------

Changes the bounding box 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.SetFieldBBox"; PDF; Field; Left; Top; Right; Bottom ) 

**MBS**( **"DynaPDF.SetFieldBBox";** /\* Changes the bounding box of a field. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Field**; /\* The field index or field name.e.g. "FirstName" \*/   
**$Left**; /\* The top/left coordinate.e.g. 10 \*/   
**$Top**; /\* The top/left coordinate.e.g. 10 \*/   
**$Right**; /\* The right/bottom coordinate.e.g. 50 \*/   
**$Bottom**) /\* The right/bottom coordinate.e.g. 30 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Field | The field index or field name. | "FirstName" |
| Left | The top/left coordinate. | 10 |
| Top | The top/left coordinate. | 10 |
| Right | The right/bottom coordinate. | 50 |
| Bottom | The right/bottom coordinate. | 30 |

### Result

Returns OK or error.

### Description

Changes the bounding box of a field.   
The bounding box must be defined in bottom up coordinates. The Top member of the structure BBox must be larger than Bottom as well as Right must be larger than the Left member.  
See also [SetFieldBBox](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetFieldBBox.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetFieldColor](DynaPDFSetFieldColor.md)
- [DynaPDF.SetFieldDate](DynaPDFSetFieldDate.md)
- [DynaPDF.SetFieldFlags](DynaPDFSetFieldFlags.md)
- [DynaPDF.SetFieldFont](DynaPDFSetFieldFont.md)
- [DynaPDF.SetFieldFontEx](DynaPDFSetFieldFontEx.md)
- [DynaPDF.SetFieldIndex](DynaPDFSetFieldIndex.md)
- [DynaPDF.SetFieldName](DynaPDFSetFieldName.md)
- [DynaPDF.SetPageBBox](DynaPDFSetPageBBox.md)
- [DynaPDF.SetTemplBBox](DynaPDFSetTemplBBox.md)

This function checks for a license.

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

  
[DynaPDF.SetExtStrokeColorSpace](DynaPDFSetExtStrokeColorSpace.md) - [DynaPDF.SetFieldBackColor](DynaPDFSetFieldBackColor.md)

[HTML Version](DynaPDFSetFieldBBox.shtml)