Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.GetFieldAsJSON
Queries one form fields as JSON object.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 10.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.GetFieldAsJSON"; PDF; Field ) More
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" |
Result
Returns JSON or error.
Description
Queries one form fields as JSON object.See TPDFFieldEx structure in DynaPDF help, which we convert to JSON for you.
Keys include Deleted, BBox, FieldType, GroupType, Handle, BackColor, BackColorSP, BorderColor, BorderColorSP, BorderStyle, BorderWidth, CharSpacing, Checked, CheckBoxChar, DefState, Description, EditFont, ExpValCount, ExpValue, FieldFlags, FieldFont, FontSize, FieldName, HighlightMode, IsCalcField, MapName, MaxLen, ChildrenCount, Children, Parent, PageNum, Rotate, TextAlign, TextColor, TextColorSP, TextScaling, ToolTip, UniqueName, Value, WordSpacing, PageIndex, Barcode, Signature, ModDate, CaptionPos, DownCaption, DownImage, RollCaption, RollImage, UpCaption, UpImage, OC, Action, Action and Events.
Added FullyQualifiedFieldName as field for v14.0.
The description for a signature field includes the signature dictionary with the metadata for the signature like the certificate, the name, the contact info and the reason. You can take the base64 encoded certificate, add header/footer and load it with X509.Read function to inspect.
See also GetFieldAsJSON function in DynaPDF manual.
Examples
Query JSON for one field by name:
Set Variable [ $JSON ; Value: MBS( "DynaPDF.GetFieldAsJSON"; $PDF; "FirstName" ) ]
Query JSON for one field by index:
Set Variable [ $JSON ; Value: MBS( "DynaPDF.GetFieldAsJSON"; $PDF; 0 ) ]
See also
- DynaPDF.GetActionsAsJSON
- DynaPDF.GetField
- DynaPDF.GetFieldColor
- DynaPDF.GetFieldCount
- DynaPDF.GetFieldFlags
- DynaPDF.GetFieldIndex
- DynaPDF.GetFontAsJSON
- DynaPDF.GetFontsAsJSON
- DynaPDF.New
- X509.Read
Release notes
- Version 14.0
- Added FullyQualifiedFieldName as new field for DynaPDF.GetFieldAsJSON and DynaPDF.GetFieldAsJSON results.
- Version 11.0
- Fixed DynaPDF.GetFieldAsJSON and DynaPDF.GetFieldsAsJSON to return ActionType with that key name instead of Action twice.
- Version 10.5
Blog Entries
- MBS FileMaker Plugin, version 13.6pr1
- MBS FileMaker Plugin, version 11.0pr6
- New in MBS FileMaker Plugin 10.5
- MBS FileMaker Plugin, version 10.5pr1
- Embrace JSON
FileMaker Magazin
This function checks for a license.
Created 19th September 2020, last changed 3th December 2024