DynaPDF Manual - Page 858

Previous Page 857   Index   Next Page 859

Function Reference
Page 858 of 860
WriteFTextEx
Syntax:
LBOOL pdfWriteFTextEx(
const PPDF* IPDF,
// Instance pointer
double PosX,
// X-Coordinate of output rectangle
double PosY,
// Y-Coordinate of output rectangle
double Width,
// Width of output rectangle
double Height,
// Height of output rectangle or -1
TTextAlign Align,
// Base alignment
const char* AText) // Null-terminated string to be printed
The function prints a formatted text exactly in the same way as WriteFText(). However, the function
contains already the parameters to set the output rectangle. The function supports a callback
function to enable the output of multi-column text in the same way as WriteFText(). However, if no
callback function is set, the text continues on the next page by using the same output rectangle.
To avoid a page break set the parameter Height to -1. Manual page breaks which can be created
with the command tag \np# are still executed. See WriteFText() for further information.
This function is implemented in an Ansi and Unicode compatible version.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
WriteText
Syntax:
LBOOL pdfWriteText(
const PPDF* IPDF,
// Instance pointer
double PosX,
// X-Coordinate of the text
double PosY,
// Y-Coordinate of the text
const char* AText) // Null-terminated string to be printed
The function prints a text on the current open page, template, or pattern. The point PosX, PosY
defines the baseline of the text if the coordinate system is bottom-up, otherwise the baseline lies at
PosY + FontSize . The font origin can be changed with the function SetFontOrigin().
The function requires a font that must be set with the function SetFont() beforehand.
This function is implemented in an Ansi and Unicode compatible version. If non-null-terminated
strings must be printed use WriteTextEx() instead.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: How to create multi-column text?

Next topic: WriteTextEx, WriteTextMatrix