DynaPDF Manual - Page 745

Previous Page 744   Index   Next Page 746

Function Reference
Page 745 of 787
SetTextRect
Syntax:
LBOOL pdfSetTextRect(
const PPDF* IPDF, // Instance pointer
double PosX,
// X-Coordinate of output rectangle
double PosY,
// Y-Coordinate of output rectangle
double Width,
// Width of output rectangle
double Height)
// Height of output rectangle or -1
The function defines the output rectangle that is used to output formatted text by the function
WriteFText(). The text is not clipped into the rectangle. WriteFText() executes a callback if defined
(see SetOnPageBreakProc()), when the rectangle was filled with text and more text is available for
output. If no callback function is used, the text continues on the next page by using the same output
rectangle. The usage of the function is described in detail under WriteFText().
The parameter Height can be set to -1 to determine that no page break should occur.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetTextRise
Syntax:
LBOOL pdfSetTextRise(
const PPDF* IPDF, // Instance pointer
double Value)
// Text rise in units
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. The figure below illustrates the effect of the text rise. Text rise always applies to the vertical
coordinate in text space.
The text moves around the baseline.
Default value = 0
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetTextFieldValue, SetTextFieldValueEx

Next topic: SetTextScaling, SetTransparentColor, SetTrapped

Start Chat