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, wchar_t * Text);

Parameters

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