DynaPDF Manual - Page 727

Previous Page 726   Index   Next Page 728

Function Reference
Page 727 of 839
The number of components must match the number of components of the underlying color space.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetFillColorSpace
Syntax:
LBOOL pdfSetFillColorSpace(
const PPDF* IPDF,
// Instance pointer
TPDFColorSpace CS) // Color space
The function changes the fill 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 also SetStrokeColorSpace().
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.
SetFloatPrecision
Syntax:
LBOOL pdfSetFloatPrecision(
const PPDF* IPDF,
// Instance pointer
UI32 NumTextDecDigits, // Number decimal digits for text object
UI32 NumVectDecDigits) // Number of decimal digits for vector objects
The function changes the output precision of text and vector coordinates. The default precision for
text and vector graphics is two decimal digits. This corresponds to 7200 DPI. The output precision of
bezier curves is one higher as for vector graphics. The maximum output precision is 5 decimal
digits.
Note that higher values increase the resulting file size.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetFillColorEx, SetFillColorF

Next topic: SetFont