Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    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 )


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

DynaPDF.SetFieldBorderWidth   -   DynaPDF.SetFieldDate

Feedback: Report problem or ask question.

MBS FileMaker Plugins