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.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DynaPDF.SetTextRect
The function defines the output rectangle that is used to output formatted text by the function DynaPDF.WriteFText.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 3.1 | Yes | Yes | Yes | Yes | Yes |
Parameters
| 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 |
Result
Returns OK or error message.
Description
The function defines the output rectangle that is used to output formatted text by the function DynaPDF.WriteFText.See also SetTextRect function in DynaPDF manual.
Examples
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)]
See also
- DynaPDF.EndPage
- DynaPDF.GetFTextHeight
- DynaPDF.GetTextWidth
- DynaPDF.New
- DynaPDF.RotateCoords
- DynaPDF.SetContent
- DynaPDF.SetFont
- DynaPDF.SetPageBreakExpression
- DynaPDF.SetTextRise
- DynaPDF.WriteStyledText
Example Databases
- DynaPDF/Create Text as PDFA
- DynaPDF/Place Picture
- DynaPDF/Styled Text
- DynaPDF/Watermark pages
- DynaPDF/WriteFText
- DynaPDF/ZUGFeRD/ZUGFeRD Invoice
- DynaPDF/ZUGFeRD 2.0/Factur-X Invoice
- DynaPDF/ZUGFeRD 2.0/ZUGFeRD 2.0 Invoice
Created 18th August 2014, last changed 27th May 2017
DynaPDF.SetTextFieldValueEx - DynaPDF.SetTextRise
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins