You are not logged in.
I think that I need to use PDF.Canvas.SetTextMatrix, but I cannot find any example to show how it works...
Anyone can put an example?
Thanks!
Offline
Finally, I found how works...
var a := angle*(PI/180);
var c := Cos(a);
var s := Sin(a);
pdf.Canvas.SetFont('Arial', 11, []);
pdf.Canvas.BeginText;
pdf.Canvas.SetTextMatrix(c, s, -s, c, 200, 200);
pdf.Canvas.ShowText('ROTATED TEXT');
pdf.Canvas.EndText;
Only works with ShowText (with TextOut not).
And BeginText, EndText is important too
Offline