Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.GetField
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)
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Field | The field index or field name. Zero based and up to DynaPDF.GetFieldCount-1. |
"FirstName" |
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. |
"Name" |
Result
Returns field handle or error.
Description
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.
Examples
Query bounding box of field:
MBS( "DynaPDF.GetField"; $pdf; "FirstName"; "BBox" )
See also
- DynaPDF.DeleteField
- DynaPDF.FindField
- DynaPDF.GetFieldExpValCount
- DynaPDF.GetFieldExpValue
- DynaPDF.GetFieldName
- DynaPDF.GetFontsAsJSON
- DynaPDF.GetPageField
- DynaPDF.New
- DynaPDF.SetFieldExpValueEx
- DynaPDF.SetFieldFlags
Release notes
- Version 14.0
- Added FullyQualifiedFieldName as new field for DynaPDF.GetFieldAsJSON and DynaPDF.GetFieldAsJSON results.
- Version 11.5
- Added new fields FmtTextColor and FmtText for DynaPDF.GetField and DynaPDF.GetFieldsAsJSON.
- Version 11.2
- Fixed DynaPDF.GetFieldsAsJSON function to produce better JSON.
- Version 11.0
- Fixed DynaPDF.GetFieldAsJSON and DynaPDF.GetFieldsAsJSON to return ActionType with that key name instead of Action twice.
- Version 10.5
- Added DynaPDF.GetAnnotationAsJSON, DynaPDF.GetColorSpaceAsJSON, DynaPDF.GetEmbeddedFileAsJSON, DynaPDF.GetFieldAsJSON and DynaPDF.GetFontAsJSON functions.
- Added DynaPDF.GetAnnotationsAsJSON, DynaPDF.GetBookmarksAsJSON, DynaPDF.GetColorSpacesAsJSON, DynaPDF.GetDocInfoAsJSON, DynaPDF.GetEmbeddedFilesAsJSON, DynaPDF.GetFieldsAsJSON, DynaPDF.GetFontsAsJSON, DynaPDF.GetImportDocInfoAsJSON and DynaPDF.SysFontInfoAsJSON functions.
- Version 9.0
- Added more selectors or DynaPDF.GetField to query more fields.
- Version 7.5
- Fixed DynaPDF.GetField for 64-bit Windows.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 11.5pr3
- MBS FileMaker Plugin, version 8.6pr3
- PDF Forms with MBS Plugin
- MBS FileMaker Plugin, version 7.5pr3
- MBS Filemaker Plugin, version 4.4pr3
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 15th November 2022