Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 649

Previous Page 648   Index   Next Page 650

Function Reference
Page 649 of 750
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: SetFillColorF

Next topic: SetFont