DynaPDF Manual - Page 751

Previous Page 750   Index   Next Page 752

Function Reference
Page 751 of 777
StrokePath
Syntax:
LBOOL pdfStrokePath(
const PPDF* IPDF) // Instance pointer
The function strokes the current path without closing it. If no open path can be detected the function
returns with a warning.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
TestGlyphs
Syntax:
SI32 pdfTestGlyphs(
const PPDF* IPDF, // Instance pointer
SI32 FontHandle,
// Font handle
const char* Text) // Text that should be tested
The function checks whether all glyphs of the text are available in the specified font. The return value
is the position of the first missing glyph, or -1 if all glyphs are available.
If the font uses a mixed 8/16 bit CJK code page that requires a conversion to Unicode (a code page
that ends with "_Uni"), the return value corresponds to the converted Unicode string and not to the
CJK input string.
TestGlyphsEx
Syntax:
SI32 pdfTestGlyphsEx(
const PPDF* IPDF, // Instance pointer
SI32 FontHandle,
// Font handle
const char* Text, // Text that should be tested
UI32 Len)
// Text length in characters
The function checks whether all glyphs of the text are available in the specified font like TestGlyphs()
but it accepts a non-null-terminated string as input. The return value is the position of the first
missing glyph, or -1 if all glyphs are available.
If the font uses a mixed 8/16 bit CJK code page that requires a conversion to Unicode (a code page
that ends with "_Uni"), the return value corresponds to the converted Unicode string and not to the
CJK input string.
 

Previous topic: StampAnnot

Next topic: TextAnnot