DynaPDF Manual - Page 776

Previous Page 775   Index   Next Page 777

Function Reference
Page 776 of 787
\FC[UI32]
// font color
\FS[float]
// font size
\FT[int or char*]
// font handle or PostScript name
\LD[letter 't' or float] // leading or line height, see description
\LI[float, int, float]
// list, see description on the next page
\LK[bool, bool, bool,
// add a link, see description
char*]
\TL[int]
// tab length
\TR[float]
// text rise
\TS[float]
// text scaling
Two categories of command tags are available, those without a parameter and the others which
require one or more parameters. The tags which require no parameter end with a numbersign
(character code 35). Parameters are always encapsulated into brackets. The values inside the
brackets must be defined without trailing spaces or other characters. Note that all characters before
and after a tag will be printed.
Note that the backslash is an escape character in C/C++ literal strings. For better readability the
second backslash is omitted. Note also that the backslash must be escaped in literal strings only.
Example:
"This is a \ul#\FC[255]red\FC[0]\ul# string!" = This is a red string!
Tag
Description
\ul#
Draw the following text as underlined text. The next \ul# tag deactivates underlined
output:
"This is \ul#underlined\ul# text!" = This is underlined text!
\st#
Draw the following text as strikeout text. The next \st# tag deactivates underlined output:
"This is \st#strikout\st# text!" = This is strikeout text!
\us#
Draw the following text as underlined and strikeout text. The next \us# tag deactivates the
tag:
"This is \us#underlined + strikeout\us# text!" = This is underlined +
strikeout text!
\np#
This tag creates a page break event. If the OnPageBreak callback function was set, the
function is called without leaving the current page. The current page is still open, so that it
is possible to make arbitrary changes inside the callback function such as changing the font,
the output rectangle or closing the current page and opening another one so that the
remaining text can be printed.
If no callback function was set, the current page will be closed and the remaining text will
be printed on the next page by using the same output rectangle. See also
 

Previous topic: Command tags

Next topic: Special characters, Escape Sequences

Start Chat