Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3    Statistic  


Sets a specific color of an interactive form field.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 4.0 Yes Yes Yes Yes Yes
MBS( "DynaPDF.SetFieldColor"; PDF; Field; ColorType; CS; Color )   More


Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
Field The field index or field name. "FirstName"
ColorType The type of color. Can be BackColor, BorderColor or TextColor. "TextColor"
CS The color space. Can be DeviceRGB, DeviceCMYK or DeviceGray. "DeviceRGB"
Color The color value to use. MBS( "DynaPDF.RGB"; 0; 0; 255 )


Returns OK or error.


Sets a specific color of an interactive form field.
The background and border color of a form field must be defined in the same color space. The color space for the text color can be defined in a separate color space (e.g. DeviceGray for the text and DeviceRGB for the background and border).
If the border or background should appear transparent set the value to NO_COLOR (4294967281). The text color cannot be transparent.

You can use DynaPDF.RGB function to calculate RGB color value.

See also SetFieldColor function in DynaPDF manual.

See also

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

DynaPDF.SetFieldBorderWidth   -   DynaPDF.SetFieldDate

Feedback: Report problem or ask question.

MBS FileMaker blog