PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() ![]() ![]() Collapse AllThis method sets the text rise value.
|
| 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


