HRESULT PDFPAGE_SetTextRise ( DOUBLE rise ) |
Text rise specifies the distance to move the baseline up or down from its default location. Positive values of text rise move the baseline up. Adjustments to the baseline are useful for drawing superscripts or subscripts. The default location of the baseline can be restored by setting the text rise to 0.
Equivalent in new interface: IPDFDocument4::SetTextRise.
{ PDF object is supposed to be created } PDF.BeginDoc; PDF.PDFPAGE_SetActiveFont('Verdana', false, false, false, false, 14.0, 0); PDF.PDFPAGE_SetTextRise(0); PDF.PDFPAGE_TextOut(20, 20, 0.0, 'ABC'); PDF.PDFPAGE_SetTextRise(5); PDF.PDFPAGE_TextShow('ABC'); PDF.PDFPAGE_SetTextRise(-5); PDF.PDFPAGE_TextShow('ABC'); PDF.EndDoc;
// PDF object is supposed to be created PDF->BeginDoc(); PDF->PDFPAGE_SetActiveFont("Verdana", false, false, false, false, 14.0, 0); PDF->PDFPAGE_SetTextRise(0); PDF->PDFPAGE_TextOut(20, 20, 0.0, "ABC"); PDF->PDFPAGE_SetTextRise(5); PDF->PDFPAGE_TextShow("ABC"); PDF->PDFPAGE_SetTextRise(-5); PDF->PDFPAGE_TextShow("ABC"); PDF->EndDoc();
// PDF object is supposed to be created PDF.BeginDoc(); PDF.PDFPAGE_SetActiveFont("Verdana", false, false, false, false, 14.0, 0); PDF.PDFPAGE_SetTextRise(0); PDF.PDFPAGE_TextOut(20, 20, 0.0, "ABC"); PDF.PDFPAGE_SetTextRise(5); PDF.PDFPAGE_TextShow("ABC"); PDF.PDFPAGE_SetTextRise(-5); PDF.PDFPAGE_TextShow("ABC"); PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_SetActiveFont "Verdana", False, False, False, False, 14.0, 0 PDF.PDFPAGE_SetTextRise 0 PDF.PDFPAGE_TextOut 20, 20, 0.0, "ABC" PDF.PDFPAGE_SetTextRise 5 PDF.PDFPAGE_TextShow "ABC" PDF.PDFPAGE_SetTextRise -5 PDF.PDFPAGE_TextShow "ABC" PDF.EndDoc