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

DynaPDF.SetFieldBackColor

Sets field background color.

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

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Color The new color value. MBS( "DynaPDF.RGB"; 0; 0; 255 )

Result

Returns OK or error.

Description

Sets field background color.
The function sets the background color used for newly created interactive form fields and annotations. Normal annotations support RGB colors only. Form fields support the color spaces DeviceRGB, DeviceGray, and DeviceCMYK. The color value must be defined in the current color space.
If the background should appear transparent set the color to NO_COLOR (4294967281).
Default value = NO_COLOR.
For RGB you can calculate color as Blue*65536+Green*256+Red with color channels in range 0 to 255.
You can use DynaPDF.RGB function to calculate RGB color value.

See also SetFieldBackColor function in DynaPDF manual.

See also

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 21st June 2021


DynaPDF.SetFieldBBox - DynaPDF.SetFieldBorderColor