PDFPAGE_SetTextRise
IPDFDocument3 :: PDF page methods

See Also Example
Collapse All

This method sets the text rise value.

Syntax

HRESULT PDFPAGE_SetTextRise (
DOUBLE rise
)
Parameters
rise
The text rise new value.

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

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.

Example

Setting the Text Rise Value

Delphi
[copy to clipboard]
{ 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;
C/C++
[copy to clipboard]
// 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();
C#
[copy to clipboard]
// 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();
Visual Basic
[copy to clipboard]
' 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

See Also

Reference