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: 10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3    Statistic    FMM    Blog  

DynaPDF.SetFieldBackColor

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.

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

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

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


DynaPDF.SetFieldBBox - DynaPDF.SetFieldBorderColor

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos

Start Chat