Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 618

Previous Page 617   Index   Next Page 619

Function Reference
Page 618 of 750
SetCheckBoxDefState
Syntax:
LBOOL pdfSetCheckBoxDefState(
const PPDF* IPDF, // Instance pointer
UI32 AField,
// Field handle
LBOOL Checked)
// Default state
This function changes the default state of a check box; it can differ from the current visible state of
the check box. The default state is used when the form is reset with a Reset Form Action.
The default state of a new check box is always identical with the visible state.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetCheckBoxState
Syntax:
LBOOL pdfSetCheckboxState(
const PPDF* IPDF, // Instance pointer
UI32 AField,
// Field handle
LBOOL Checked)
// State
The function changes the state of a check box. The parameter AField must be a valid check box
handle.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetCIDFont
Syntax:
SI32 pdfSetCIDFont(
const PPDF* IPDF, // Instance pointer
UI32 CMapHandle,
// Handle of a CMap returned by LoadCMap()
const char* Name, // Font name
TFStyle Style,
// Font style
double Size,
// Font size
LBOOL Embed)
// If true, the font will be embedded
The function loads an OpenType or TrueType font with an external CMap. A font that is used with
an external CMap is called a composite font or CID font. A CID-keyed font is an OpenType font
(with Postscript outlines) that contains CID font operators.
CID-keyed fonts provide a convenient and efficient method for defining multiple-byte character
encodings as wells as fonts with a large number of glyphs. These capabilities provide great flexibility
for representing text in writing systems for languages with large character sets, such as Chinese,
Japanese, and Korean (CJK).
 

Previous topic: Check box characters

Next topic: Encodings Identity-H and Identity-V