Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Sets or changes the specified color and color space.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
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" |
CSHandle | Color space handle of non-device color space. | |
Colors | Color values. Pass as many parameters as needed. Range from 0 to 1. | 0 |
Returns OK or error.
Set green text color:
MBS( "DynaPDF.Table.SetColorFloat"; $table; $Row; $Col; "TextColor"; "DeviceRGB"; 0; 1; 0 )
This function checks for a license.
Created 18th August 2014, last changed 10th December 2021