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:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Writes text on current page with formatting commands.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
Align | The text alignment. Can be left, center, right or justify. | "left" | |
Text | The text to write. | "Hello World" | |
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 WriteFText function in DynaPDF manual.
Writes some text:
MBS( "DynaPDF.WriteFText"; $PDF; "center"; "Hello World" )
Write text with font changing:
# Write some formatted text
Set Variable [ $text ; Value: "Some text. \FT[Times-Bold]Now Times in bold!\FT[Times-Roman] and back to normal Times." ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetTextRect"; $pdf; 200; 200; 150; -1) ]
Set Variable [ $r ; Value: MBS("DynaPDF.WriteFText"; $pdf; "left"; $text) ]
Write some text with a link:
MBS( "DynaPDF.WriteFText"; $PDF; "left"; "Link to DynaPDF: \FC[16711680]\ul#\LK[false, TRUE, false, https://www.dynaforms.com]Test\EK#\ul#\FC[0]." )
Created 18th August 2014, last changed 9th October 2020
DynaPDF.WriteDemoText - DynaPDF.WriteFTextEx
Feedback: Report problem or ask question.