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 styled text on current page.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 6.5 | ✅ 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. | $h | |
Align | The text alignment. Can be left, center, right or justify. | "left" | |
Text | The text to write. | "Hello World" | |
LeadingFactor | Available in MBS FileMaker Plugin 11.0 or newer. If you pass a value > 0, the plugin will add \LD[] commands to styled text to set leading relative to font size. This way you define the spacing beteween lines. |
1.2 | Optional |
Returns OK or error.
Write styled text with rectangle:
# page size
Set Variable [ $pw ; Value: MBS("DynaPDF.GetPageWidth"; $pdf) ]
Set Variable [ $ph ; Value: MBS("DynaPDF.GetPageHeight"; $pdf) ]
# set black color
Set Variable [ $r ; Value: MBS("DynaPDF.SetFillColor"; $pdf; 0; 0; 0) ]
# write styled text
Set Variable [ $r ; Value: MBS("DynaPDF.WriteStyledTextEx"; $pdf; 100; $ph-100; $pw-200; $ph-200; "left"; Create Text::Text) ]
Created 13th October 2016, last changed 4th January 2021
DynaPDF.WriteStyledText - DynaPDF.WriteStyledTextExRotated
Feedback: Report problem or ask question.