DrawText

Text, Page layout

Description

Draws text on the selected page, using the selected font at the predetermined font size. If no fonts have been added, then 12 pt Helvetica will automatically be added and selected. The alignment of the text can be changed with the SetTextAlign function.

Syntax

Delphi

function TPDFlib.DrawText(XPos, YPos: Double; Const Text: WideString): Integer;

ActiveX

Function PDFlib::DrawText(XPos As Double, YPos As Double, Text As String) As Long

DLL

int DLDrawText(int InstanceID, double XPos, double YPos, wchar_t * Text);

Parameters

XPosThe horizontal position of where to draw the text. The reference point is usually to the left of the first character, unless the SetTextAlign function has been used to change the alignment.
YPosThe vertical position of where to draw the text. The reference point is the text baseline.
TextThe text to draw on the page