Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

DynaPDF.WriteFText

Writes text on current page with formatting commands.

Component: DynaPDF
Version: 3.1
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "DynaPDF.WriteFText"; PDF; Align; Text )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
Align The text alignment. Can be left, center, right or justify. "left"
Text The text to write. "Hello World"

Result

Returns OK or error message.

Description

Writes text on current page with formatting commands.
See also pdfWriteFText in DynaPDF manual.
Use DynaPDF.GetFTextHeightEx or DynaPDF.GetFTextHeight to calculate the space needed for the text if you want to create a matching text rectangle for vertical alignment.

See DynaPDF.AllowPageBreak for whether to do page breaks or not.

Please set a font first with DynaPDF.SetFont function before you write on the page.

Examples

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) ]

See also


DynaPDF.WriteDemoText   -   DynaPDF.WriteFTextEx

Feedback: Report problem or ask question.




Links
MBS Real Studio PDF Plugins - Pfarrgemeinde St. Arnulf Nickenich