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

DynaPDF.WriteFTextExRotated

Writes text on current page with formatting commands.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.WriteFTextExRotated"; PDF; PosX; PosY; Width; Height; Align; Text; Alpha { ; PlainText } )   More

Parameters

Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
PosX X-Coordinate of output rectangle $x
PosY Y-Coordinate of output rectangle $y
Width Width of output rectangle $w
Height Height of output rectangle or -1.
Use -1 for auto size.
$h
Align The text alignment. Can be left, center, right or justify. "left"
Text The text to write. "Hello World"
Alpha The rotation angle in degrees.
From 0 to 360 degrees.
90
PlainText Available in MBS FileMaker Plugin 9.1 or newer.
Pass 1 to ignore formatting commands and treat text as plain text.
Default is 0 to interpret commands in text.
0 Optional

Result

Returns OK or error message.

Description

Writes text on current page with formatting commands.
Same as DynaPDF.WriteFTextEx, but with additional rotation in center of box.

See DynaPDF.WriteStyledTextExRotated to convert FileMaker styles to DynaPDF commands.
Changes coordinate system to Bottom-Up since we can't rotate well in Top-Down.

See also WriteFTextExRotated function in DynaPDF manual.

Examples

Try it:

Set Variable [ $r ; Value: MBS("DynaPDF.AppendPage"; $pdf) ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetFillColor"; $pdf; 0; 0; 0) ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetFont"; $pdf; "Arial"; 0; 48) ]
Set Variable [ $r ; Value: MBS("DynaPDF.WriteFTextExRotated"; $pdf; 0; 400; 500; -1; "center"; "DO NOT PRINT";90) ]
Set Variable [ $r ; Value: MBS("DynaPDF.EndPage"; $pdf) ]

See also

Release notes

Blog Entries

This function checks for a license.

Created 10th August 2017, last changed 6th August 2023


DynaPDF.WriteFTextEx - DynaPDF.WriteStyledText