Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Returns the most important properties of a field.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 4.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.GetField"; PDF; Field; Selector )   More

(old name: DynaPDF.GetFieldEx)


Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Field The field index or field name.
Zero based and up to DynaPDF.GetFieldCount-1.
Selector What value to query.
Can be Deleted, BBox, FieldType, GroupType, Handle, BackColor, BackColorSP, BorderColor, BorderColorSP, BorderStyle, BorderWidth, CharSpacing, Checked, CheckBoxChar, DefState, DefValue, EditFont, ExpValueCount, BorderColor, FieldFlags, FieldFont, FontSize, FieldName, HighlightMode, IsCalcField, MapName, MaxLen, KidCount, PageNum, Rotate, TextAlign, TextColor, TextColorSP, TextScaling, ToolTip, UniqueName, Value, WordSpacing, Parent or Kids.

Added ModDate, CaptionPos, DownCaption, DownImage, RollCaption, RollImage, UpCaption, UpImage, Action and ActionType for version 9.0.


Returns field handle or error.


Returns the most important properties of a field.
Field handles are simple array indexes into the field array of the global AcroForm object. To enumerate all fields of a document execute the function in a loop from 0 though DynaPDF.GetFieldCount-1.
See GetFieldEx function in DynaPDF help file for details.

See also GetField function in DynaPDF manual.


Query bounding box of field:

MBS( "DynaPDF.GetField"; $pdf; "FirstName"; "BBox" )

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 15th November 2022

DynaPDF.GetFTextHeightEx - DynaPDF.GetFieldAsJSON