DynaPDF Manual - Page 438
Previous Page 437 Index Next Page 439
Function Reference
Page 438 of 860
GetFTextHeightEx
Syntax:
double pdfGetFTextHeightEx(
const PPDF* IPDF,
// Instance pointer
double Width,
// Width of output rectangle
TTextAlign Align,
// Base text alignment
const char* AText) // Formatted text
The function measures the height of a formatted text block. The function works in the same way as
GetFTextHeight() but the output rectangle must not be set manually beforehand.
The height of the output rectangle is set to -1 to avoid a page break during measuring.
The parameter AText must contain the same text (incl. format tags if any) as which should be
printed later with WriteFText().
Remarks:
This function is implemented in an Ansi and Unicode compatible version.
Return values:
If the function succeeds the return value is the height of the formatted text block. If the function fails
the return value is a negative error code.
GetFullyQualifiedFieldName
SI32 pdfGetFullyQualifiedFieldName(
const PPDF* IPDF, // Instance pointer
UI32 Handle,
// Field handle
UI16* ADDR Value) // Address of a UI16* variable
The function returns the fully qualified name of a field. Note that children of a radio button, for
example, have no name by its own. The export value must be compared to distinguish the children
fields in this case.
Return values:
If the function succeeds the return value is the name length in characters. If the function fails, the
return value is a negative error code.
GetGlyphIndex
Syntax:
SI32 pdfGetGlyphIndex(
const PPDF* IPDF, // Instance pointer
UI32 Index)
// Code page, Unicode, or CJK index
The function returns the glyph index of the given code page or Unicode index. How Index must be
defined depends on the code page with which the font was loaded. For example, if the font was
Previous topic: GetFontWeight, Font weights:, GetFTextHeight
Next topic: GetGlyphOutline, C, C++, Delphi