Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Writes text on current page with formatting commands.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 7.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
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 |
Returns OK or error message.
See also WriteFTextExRotated function in DynaPDF manual.
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) ]
This function checks for a license.
Created 10th August 2017, last changed 6th August 2023