Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

DynaPDF.SetTextDrawMode

Sets text draw mode.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 6.0 Yes Yes Yes Yes Yes

MBS( "DynaPDF.SetTextDrawMode"; PDF; Mode )

Parameters

Parameter Description Example value
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


DynaPDF.SetStrokeColor   -   DynaPDF.SetTextFieldValue

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins