Rotating a Text
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.SetTextPosition(20, 20);
PDF.TextAngle := -35;
PDF.ShowText('This text is rotated at -35 degrees.');
PDF.TextAngle := 0;
PDF.ShowText(' This text is not rotated. ');
PDF.TextAngle := 35;
PDF.ShowText('And this text is rotated at +35 degrees.');
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->SetTextPosition(20, 20);
PDF->TextAngle = -35;
PDF->ShowText("This text is rotated at -35 degrees.");
PDF->TextAngle = 0;
PDF->ShowText(" This text is not rotated. ");
PDF->TextAngle = 35;
PDF->ShowText("And this text is rotated at +35 degrees.");
PDF->SaveToFile("test.pdf", true);
// PDF object is supposed to be created
PDF.SetTextPosition(20, 20);
PDF.TextAngle = -35;
PDF.ShowText("This text is rotated at -35 degrees.");
PDF.TextAngle = 0;
PDF.ShowText(" This text is not rotated. ");
PDF.TextAngle = 35;
PDF.ShowText("And this text is rotated at +35 degrees.");
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.SetTextPosition 20, 20
PDF.TextAngle = -35
PDF.ShowText "This text is rotated at -35 degrees."
PDF.TextAngle = 0
PDF.ShowText " This text is not rotated. "
PDF.TextAngle = 35
PDF.ShowText "And this text is rotated at +35 degrees."
PDF.SaveToFile "test.pdf", true