Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

💬 Ask a question or report a problem