Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 725

Previous Page 724   Index   Next Page 726

Function Reference
Page 725 of 770
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Draw Mode
Description
dmNormal
Default, render the text in the usual way. The fill color is used as the text's
color.
dmStroke
Tread the glyph outlines as path to be stroked. The current line width and
stroke color are used to paint the path.
dmFillStroke
Tread the glyph outlines as path to be stroked and filled. The current line
width, fill color, and stroke color are used to paint the path.
dmInvisible
Neither fill nor stroke the text, the text is invisible.
dmFillClip
Tread the glyph outlines as path to be filled and add this path to the
current clipping path. The settings of the current line width and fill color
are used to paint the path.
dmStrokeClip
Tread the glyph outlines as path to be stroked and add this path to the
current clipping path. The settings of the current line width and stroke
color are used to paint the path.
dmFillStrokeClip
Tread the glyph outlines as path to be stroked and filled and add this path
to the current clipping path. The settings of the current line width, fill
color and stroke color are used to paint the path.
dmClipping
Tread the glyph outlines as path and add this path to the current clipping
path.
How to use text as clipping path?
As mentioned earlier the usage of text as clipping path is not the same as a normal clipping path. The
following example shows how a text can be used for clipping:
Example (C++):
#include "dynapdf.h"
using namespace DynaPDF;
// First we declare an error callback function.
SI32 PDF_CALL PDFError(const void* Data, SI32 ErrCode, const char*
ErrMessage, SI32 ErrType)
{
printf("%s\n", ErrMessage);
return 0; // We ignore non-fatal errors
 

Previous topic: SetTabLen, SetTextDrawMode

Next topic: SetTextFieldValue