Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 744

Previous Page 743   Index   Next Page 745

Function Reference
Page 744 of 750
Character code (Hex)
Description
0x200C
Zero width non-joiner
0x200D
Zero width joiner
The bidirectional code pages 1255 and 1256 support the character codes 0x200E and 0x200F only (the
mapped codes are 253 and 254).
Note that the Unicode character codes are supported by the Unicode version of the function only.
Escape Sequences
In situations where an alignement or command tag should be output as plain text it is possible to
precede the tag with an additional backslash. This marks the string as plain text and the function
does not interpret the string as a command or alignment tag. The first backslash is treated as escape
character and will be removed.
Example:
\\
= \\
\\ce#
= \ce#
\\\le#
= \\le#
\\LI [...] = \\LI [...] // No valid tag -> always processed as text
\\LI[...]
= \LI[...]
The function compares the first four characters of command tags which accept parameters . If the
sequence matches a command tag an additional backslash is required if the string should be output
as text.
It is also possible to fully disable alignment and command tags with the flag taPlainText that can be
passed to the parameter Align. Combine the flag with the whished alignment constant with a binary
or operator, e.g. (TTextAlign)(taRight | taPlainText). This can be useful when it is known that the
incomming text cannot contain valid alignment or command tags. Line breaks and so on are still
processed as usual but all kinds of alignment and command tags will be interpreted as plain text.
How to create multi-column text?
WriteFText() supports a callback function which can be used to create various formattings. The
callback function is required to print text into multiple columns.
The Visual Basic and VB .Net interfaces use events instead of callback functions. However, the usage
is identical but the event must be manually connected with the function ConnectPageBreakEvent() so
that the event can be raised.
A good example to demonstrate the usage of the callback function is the output of multi-column text.
In the following example we have a text file that contains the text that should be printed. The text
that we use in this example is not of interest, it must only be large enough so that WriteFText()
generates an OnPageBreak event. Note that it is also possible to create this event manually with the
command tag \np#.
 

Previous topic: Special characters

Next topic: WriteText