DynaPDF Manual - Page 707

Previous Page 706   Index   Next Page 708

Function Reference
Page 707 of 787
A 2-character ISO 639 language code - for example, en for English or es for Spanish.
The letter i, designating an IANA-registered identifier
The letter x for private use
The first sub code can be a 2-character ISO 3166 country code, as in en-US, or a 3- to 8-character sub
code registered with IANA, as in en-cockney or i-cherokee (except in private identifiers, for which sub
codes are not registered). Sub codes beyond the first can be any that have been registered at IANA.
Language identifiers are treated case-sensitive.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
LBOOL pdfSetLeading(
const PPDF* IPDF,
// Instance pointer
double Value)
// New leading or 0
The function sets the leading (also called line height or line spacing) that is used by the functions
AddContinueText() and WriteFText() to calculate the distance between two text lines.
The default leading in PDF is the font size. However, this value is often too small and can cause
overlapping text lines. Most modern TrueType and OpenType fonts contain metrics of the
typographic leading or line height that was intended for the particular font. This value considers the
particular properties of the font and is the recommended way to calculate the line height.
The typographic line height or leading is returned by the functions GetTypoLeading() and
A value of 0 determines that the font size should be used as leading, this is the default behaviour.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
LBOOL pdfSetLicenseKey(
const PPDF* IPDF,
// Instance pointer
const char* Value) // License key as string
The function sets the license key and deactivates the demo mode if the key was valid. If the value
represents a correct license key the demo string does not longer appear on PDF pages. Once a
correct key was set, it will be active until the library will be unloaded or the current PDF instance is

Previous topic: SetJPEGQuality, SetLanguage, Language Identifiers

Next topic: SetLineAnnotParms

Start Chat