



Collapse AllThis method rotates text to the angle specified.
Syntax| HRESULT PDFPAGE_RotateText ( DOUBLE degrees ) |
RemarksThis method applies the text rotationĀ for all future text output operations and does not modify any text already displayed.
Equivalent in new interface: IPDFDocument4::TextAngle.
Example{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_SetActiveFont('Helvetica', false, false, false, false, 14.0, 0);
PDF.PDFPAGE_SetTextPosition(20, 20);
PDF.PDFPAGE_TextShow('This text is not rotated.');
PDF.PDFPAGE_RotateText(-15);
PDF.PDFPAGE_TextShow(' This text is rotated at -15 degrees.');
PDF.EndDoc;
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_SetActiveFont("Helvetica", False, False, False, False, 14.0, 0);
PDF->PDFPAGE_SetTextPosition(20, 20);
PDF->PDFPAGE_TextShow("This text is not rotated.");
PDF->PDFPAGE_RotateText(-15);
PDF->PDFPAGE_TextShow(" This text is rotated at -15 degrees.");
PDF->EndDoc();
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_SetActiveFont("Helvetica", false, false, false, false, 14.0, 0);
PDF.PDFPAGE_SetTextPosition(20, 20);
PDF.PDFPAGE_TextShow("This text is not rotated.");
PDF.PDFPAGE_RotateText(-15);
PDF.PDFPAGE_TextShow(" This text is rotated at -15 degrees.");
PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_SetActiveFont "Helvetica", False, False, False, False, 14.0, 0 PDF.PDFPAGE_SetTextPosition 20, 20 PDF.PDFPAGE_TextShow "This text is not rotated." PDF.PDFPAGE_RotateText -15 PDF.PDFPAGE_TextShow " This text is rotated at -15 degrees." PDF.EndDoc
See Also