DynaPDF Manual - Page 792

Previous Page 791   Index   Next Page 793

Function Reference
Page 792 of 839
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
}
int main(int argc, char* argv[])
 

Previous topic: SetTemplBBox, SetTextDrawMode

Next topic: SetTextFieldValue, Field format