DynaPDF Manual - Page 790

Previous Page 789   Index   Next Page 791

Function Reference
Page 790 of 839
SetStrokeColorSpace
Syntax:
LBOOL pdfSetStrokeColorSpace(
const PPDF* IPDF,
// Instance pointer
TPDFColorSpace CS) // Color space
The function changes the stroke color space. In PDF, fill and stroke colors use both their own color
spaces. Although it is possible to use different color spaces for strokes and fillings it should be
avoided if possible. The fill color space is the relevant color space when creating interactive objects
such as form field or annotations. See SetFillColorSpace().
Notice:
This function was added to DynaPDF primarily for testing purposes. The color space should be set
with SetColorSpace() which sets always the same color space for fillings and strokes.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetTabLen
Syntax:
LBOOL pdfSetTabLen(
const PPDF* IPDF, // Instance pointer
SI32 TabLen)
// New tabulator length in number of spaces
The function sets the tabulator length, specified in number of spaces, which will be used to emulate
tabulators during text formatting (see WriteFText() for further information).
Because tabulators are emulated with spaces they have no fixed with. The width of a tabulator
depends on the width of the space character of the active font.
Default value = 3 (min = 1, max = 256)
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetStrokeColorF

Next topic: SetTemplBBox, SetTextDrawMode