DynaPDF Manual - Page 838

Previous Page 837   Index   Next Page 839

Function Reference
Page 838 of 839
WriteTextEx
Syntax:
LBOOL pdfWriteTextEx(
const PPDF* IPDF,
// Instance pointer
double PosX,
// X-Coordinate of the text
double PosY,
// Y-Coordinate of the text
const char* AText, // Text to be printed
UI32 Len)
// Text length in characters
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 top-left corner of
the text's bounding box. The font origin can be changed with the function SetFontOrigin().
The function requires a font that must be set with the function SetFont() beforehand.
Remarks:
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.
WriteTextMatrix
Syntax:
LBOOL pdfWriteTextMatrix(
const PPDF* IPDF,
// Instance pointer
struct TCTM* M,
// Transformation matrix
const char* AText) // Null-terminated string to be printed
The function draws text on the current open page, template, or pattern by using a transformation
matrix to calculate the position of the string. This function can be used in combination with
GetPageText() to print a text on the same position as the original text that was found. The usage of
the function is described at GetPageText().
Remarks:
This function is implemented in an Ansi and Unicode compatible version. If non-null-terminated
strings must be printed use WriteTextMatrixEx() instead.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: WriteFTextEx, WriteText

Next topic: WriteTextMatrixEx