DrawRotatedText

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 standard font Helvetica will automatically be added, selected and set to 12pt. The alignment of the text is determined by the previous call to the SetTextAlign function.

Syntax

Delphi

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

ActiveX

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

DLL

int DLDrawRotatedText(int InstanceID, double XPos, double YPos, double Angle, wchar_t * 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.
AngleThe angle to draw the text, measured anti-clockwise from the horizontal. Must be between 0 and 360, inclusive.
TextThe text to draw on the page

Return values

0The Angle parameter was less than 0 or greater than 360, or the Text parameter was blank
1The text was drawn successfully