Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.BeginContinueText
This function prepares the output of multiple text lines with DynaPDF.AddContinueText.
Component | Version | macOS | Windows | Linux | Server | 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 the first text line | $x |
PosY | Y-Coordinate of the first text line | $y |
Result
Returns OK or error message.
Description
This function prepares the output of multiple text lines with DynaPDF.AddContinueText.The distance between two text lines can be adjusted with DynaPDF.SetLeading. If no leading was defined it will be set to the font size. Note that the function changes the leading of the graphics state if it was not defined beforehand. Subsequent calls use then the leading that was set in a prior call. If the font or font size will be changed it is strongly recommended to set the leading to a correct value. The default leading is the font size. The leading, font, character spacing, word spacing, text scaling, or the text color can be changed before calling DynaPDF.AddContinueText the next time.
The point PosX, PosY defines the baseline of the first text line if the coordinate system is bottom-up, otherwise the top-left corner of the text's bounding box. The origin can be changed with the function DynaPDF.SetFontOrigin.
If the font uses horizontal writing mode the text cursor moves from top to bottom. In vertical writing mode the text cursor moves from left to right.
See also BeginContinueText function in DynaPDF manual.
Examples
Use continued text:
Set Variable [ $PDF ; Value: MBS("DynaPDF.New") ]
Set Variable [ $r ; Value: MBS( "DynaPDF.AppendPage"; $PDF ) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.BeginContinueText"; $PDF; 100; 100 ) ]
Set Variable [ $r ; Value: MBS("DynaPDF.AddContinueText"; $PDF; "Hello World 123" ) ]
Set Variable [ $r ; Value: MBS("DynaPDF.AddContinueText"; $PDF; "ABCDEFGHIJK" ) ]
Set Field [ Examples::Barcode ; MBS( "DynaPDF.Save"; $PDF ) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.Release"; $PDF ) ]
See also
- DynaPDF.AddContinueText
- DynaPDF.AppendPage
- DynaPDF.New
- DynaPDF.Release
- DynaPDF.Save
- DynaPDF.SetFont
- DynaPDF.SetFontOrigin
- DynaPDF.SetLeading
Example Databases
This function checks for a license.
Created 18th August 2014, last changed 13th January 2021