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  

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 Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 4.0 Yes Yes Yes Yes Yes

MBS( "DynaPDF.SetFieldBackColor"; PDF; Color )

Parameters

Parameter Description Example value
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


DynaPDF.SetFieldBBox   -   DynaPDF.SetFieldBorderColor

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins