7.5

Table Of Contents
Example 2
setpdfbookmark( @(10,23,45) )
Example 3
setpdfbookmark( @(10,23,45) + '|' + @(11,23,45) )
SetStrokeColor (procedure)
Sets the colour of the pen used for drawing lines, boxes and other objects.
Syntax
setstrokecolor( colour )
Argument
colour
Colour array that can be expressed expressed using one, three or four values ranging from 0 to 255. For Grayscale, a single
value is used in the form [K]. For the RGB model, three values are used in the form [R, G, B]. For the CMYK model, four values
are used in the form [C, M, Y, K].
Code Sample Example
This example draws two empty rectangles of different colors.
Example
setstrokecolor([0,0,100]) %Sets stroke color to medium blue using the RGB model
rectstroke(0,0,1,1) %Draws a medium blue rectangle
setstrokecolor([0,0,255,0]) %Sets stroke color to bright yellow using the CMYK model
rectstroke(1,1,1,1) %Draws a bright yellow rectangle
SetStyle (procedure)
Sets the style to be used for all subsequent commands. The specified style must already exist in the document.
SetStyle() supercedes the SetFont() command. Although PlanetPress Talk still recognizes SetFont(), this behavior is
unlikely to continue in future versions, and it is therefore highly recommended that you use the SetStyle() command in your
scripts.
Syntax
setstyle( stylename )
©2010 Objectif Lune Inc - 333 -