DrawRotatedMultiLineText

Text, Page layout

Description

Draws rotated text which is wrapped at a specific delimiter.

The SetTextAlign function can be used to change the alignment of the text.

The first line of text will start with the baseline at the anchor point used for rotation.

Syntax

Delphi

Function TPDFlib.DrawRotatedMultiLineText(XPos, YPos, Angle: Double; Const Delimiter, Text: WideString): Integer;

ActiveX

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

DLL

int DLDrawRotatedMultiLineText(int InstanceID, double XPos, double YPos, double Angle, const wchar_t* Delimiter, const wchar_t* Text);
int DLDrawRotatedMultiLineTextA(int InstanceID, double XPos, double YPos, double Angle, const char* Delimiter, const char* Text);

Parameters

XPosThe horizontal coordinate of the anchor point
YPosThe vertical coordinate of the anchor point
AngleThe angle to rotate the text, measured anti-clockwise in degrees from the baseline, around the anchor point
DelimiterThe delimiter to use when splitting the text into lines. The only valid characters to use as the delimiter are characters which have a "width", as well as the CR and LF characters (ASCII values 13 and 10).
TextThe text to draw

Return values

Returns 1 when the text lines have been drawn; returns 0 when Text is empty, Angle is outside 0–360, or the selected font cannot supply a required glyph and missing-glyph abort is active