Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.SetTextDrawMode

Sets text draw mode.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 6.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.SetTextDrawMode"; PDF; Mode )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Mode The new text draw mode. "Invisible"

Result

Returns OK or error.

Description

Sets text draw mode.
The text draw mode specifies how text should be rendered. Texts can be used as clipping paths such as normal vector graphics; however, the usage is not the same. To use a text as clipping path save the graphics state, set the text draw mode to a clipping mode, paint the objects which should be clipped into the path and restore the graphics state.
Note that the functions DynaPDF.BeginClipPath and DynaPDF.ClipPath can not be used to define a text as clipping path.
Default value = Normal

Draw ModeDescription
NormalDefault, render the text in the usual way. The fill color is used as the text's color.
StrokeTread the glyph outlines as path to be stroked. The current line width and stroke color are used to paint the path.
FillStrokeTread 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.
InvisibleNeither fill nor stroke the text, the text is invisible.
FillClipTread 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.
StrokeClipTread 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.
FillStrokeClipTread 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.
ClippingTread the glyph outlines as path and add this path to the current clipping path.

See also SetTextDrawMode function in DynaPDF manual.

Examples

Set stroke draw text mode:

MBS( "DynaPDF.SetTextDrawMode"; $pdf; "Stroke" )

See also

Blog Entries

This function checks for a license.

Created 22nd January 2016, last changed 22nd January 2016


DynaPDF.SetTemplBBox - DynaPDF.SetTextFieldValue