50
activePDF Toolkit Professional Edition
aptkl4a 30405
Copyright 2005, activePDF, Inc. All Rights Reserved.
Page 198 of 553
SetTextColorCMYK
Description
Sets the CMYK color used for text in all subsequent calls to PrintText and PrintMultilineText.
Return type
None
Syntax
object.
SetTextColorCMYK
AmountCyan, AmountMagenta, AmountYellow, AmountBlack, PageNr
The SetTextColorCMYK method has these required parts:
Part
Value Type
Description
Object
An expression of the Toolkit object.
AmountCyan
Short
The amount of cyan to be applied to the text color. The
value ranges from 0 to 100 with 100 being true cyan.
AmountMagenta
Short
The amount of magenta to be applied to the text color. The
value ranges from 0 to 100 with 100 being true magenta.
AmountYellow
Short
The amount of yellow to be applied to the text color. The
value ranges from 0 to 100 with 100 being true yellow.
AmountBlack
Short
The amount of black to be applied to the text color. The
value ranges from 0 to 100 with 100 being true black. (To
reset color set all other colors to 0 and AmountBlack to 100).
PageNr
Long
Optional.
0=The action will take place on the new or current open
output page. (Default)
>1 = The action will occur on the specified page number.
-1 = The action will occur on all pages.
Example
'SetTextColorCMYK Example
Set TK = CreateObject("APToolkit.Object")
r = TK.OpenOutputFile("SetTextColorCMYK.pdf")
TK.SetFont "Helvetica", 20, 0
'Set the color of the printed text
TK.SetTextColorCMYK 50, 100, 24, 15, 0