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

DynaPDF Manual - Page 749

Previous Page 748   Index   Next Page 750

Function Reference
Page 749 of 750
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.
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 prints a 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.
 

Previous topic: WriteText

Next topic: WriteTextMatrixEx