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.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3    Statistic  


Sets or changes the specified color and color space.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 3.5 Yes Yes Yes Yes Yes

MBS( "DynaPDF.Table.SetColorFloat"; Table; Row; Col; Type; CS; Colors )


Parameter Description Example value
Table The identifier for the table. $Table
Row The row number. Range from 0 to DynaPDF.Table.GetNumRows-1. Pass -1 for all rows. 0
Col The column number. Range from 0 to DynaPDF.Table.GetNumCols-1. Pass -1 for all columns. 0
Type Which table color. Can be BackColor, BorderColor, GridHorzColor, GridVertColor, ImageColor or TextColor. "TextColor"
CS The colorspace to use. Can be DeviceRGB, DeviceCMYK, DeviceGray. "DeviceRGB"
Colors Color values. Pass as many parameters as needed. Range from 0 to 1. 0


Returns OK or error.


Sets or changes the specified color and color space.
The number of color components must match the number of components of the color space. The text color is inherited from the table, column, and row, in this order. The border color is inherited from columns and rows but not from the table since the table has its own border.
Extended color spaces will be deleted when the PDF file in memory is closed or when DynaPDF.Release was called. The color spaces must be recreated when the table should be drawn in another PDF file. Color space handles may change when recreated in another PDF file. All such colors should be set again to avoid issues with invalid color space handles.
Width exception of Lab colors, color values are in the range 0 through 1. Lab colors support different ranges for the L*, a*, and b* components:
L*-> 0..100
a* -> -128 .. 127
b* -> -128 .. 127


Set green text color:

MBS( "DynaPDF.Table.SetColorFloat"; $table; $Row; $Col; "TextColor"; "DeviceRGB"; 0; 1; 0 )

See also

DynaPDF.Table.SetColor   -   DynaPDF.Table.SetFlags

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins