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.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
The function defines the output rectangle that is used to output formatted text by the function DynaPDF.WriteFText.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
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 |
Returns OK or error message.
See also SetTextRect function in DynaPDF manual.
Write some text in a rectangle area:
#Add page with some text
Set Variable [$r; Value:MBS("DynaPDF.AppendPage"; $pdf)]
Set Variable [$r; Value:MBS("DynaPDF.SetTextRect"; $pdf; 100; 100; 400; 200)]
Set Variable [$r; Value:MBS("DynaPDF.SetFont"; $pdf; "Times"; 1; 40; 1; "cp1252")]
Set Variable [$r; Value:MBS("DynaPDF.WriteFText"; $pdf; "Center"; "Just a test PDF.")]
Set Variable [$r; Value:MBS("DynaPDF.EndPage"; $pdf)]
This function checks for a license.
Created 18th August 2014, last changed 27th May 2017