DynaPDF Manual - Page 188
Previous Page 187 Index Next Page 189
Function Reference
Page 188 of 839
ChangeNamedDest
Syntax:
LBOOL pdfChangeNamedDest(
const PPDF* IPDF,
// Instance pointer
TObjType ObjType,
// Object type to which the handle belongs
UI32 Handle,
// Object handle
const char* NewDestName) // New destination name
typedef enum TObjType
{
otAction,
// Ok
otAnnotation, // Ok
otBookmark,
// Ok
otCatalog,
// Unsupported
otField,
// Unsupported
otPage,
// Unsupported
otPageLink
// Ok
}TObjType;
The function changes the name of a named destination. Named destinations can be accessed by link
annotations, bookmarks, and actions. For link annotations the object type otPageLink or
otAnnotation can be used.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
ChangeFont
Syntax:
SI32 pdfChangeFont(
const PPDF* IPDF, // Instance pointer
SI32 Handle)
// Handle of the new font
This function changes or sets the font to the one of the parameter Handle. Handle must be a valid font
handle that was returned by SetFont(), SetFontEx(), SetCIDFont(), or LoadFont().
The font size is taken from the current font if any. If no font is active when the function is called, the
font size will be set to the value that was used to load font the last time.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Previous topic: ChangeBookmark
Next topic: ChangeFontEx, ChangeFontSize