DrawSpacedText

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 the 12 pt Helvetica will automatically be added and selected. Each character will be spaced at regular intervals. The individual characters will be aligned relative to the XPos variable depending on how the SetTextAlign function has been used

Syntax

Delphi

Function TPDFlib.DrawSpacedText(XPos, YPos, Spacing: Double; Const Text: WideString): Integer;

ActiveX

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

DLL

int DLDrawSpacedText(int InstanceID, double XPos, double YPos, double Spacing, const wchar_t* Text);
int DLDrawSpacedTextA(int InstanceID, double XPos, double YPos, double Spacing, const char* Text);

Parameters

XPosThe horizontal position of where to draw the text
YPosThe vertical position of where to draw the text. The reference point is the text baseline.
SpacingThe spacing between the same point on each character
TextThe text to draw on the page

Return values

Returns 1 when every character was drawn, or 0 as soon as drawing one of the characters fails