DynaPDF Manual - Page 192
Previous Page 191 Index Next Page 193
Function Reference
Page 192 of 839
Acrobat to select a specific script. The script name must be unique. Different scripts cannot not use
the same name.
Return value:
If the function succeeds the return value is 1. If the function fails the return value is 0.
ChangeLinkAnnot
Syntax:
SI32 pdfChangeLinkAnnot(
const PPDF* IPDF, // Instance pointer
UI32 Handle,
// Annotation handle
const char* URL)
// URL or file path
This function changes the link of a file link or web link annotation. The parameter AHandle must be
a valid handle of a file link, page link, or web link Annotation. The parameter URL can be either a
file path or an URL to an internet resource; it must not be an empty string or NULL. Note that you
cannot change the type of the annotation with this function. For example, a web link annotation
requires still a URL to an internet resource, while a file link annotation requires a path to a file on a
local hard drive.
Remarks:
Imported file link or web link annotations are mostly defined as page link annotation because it is
impossible to distinguish between these types during import. Use the function FindLinkAnnot() if
you need to change an imported file link or web link annotation.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
ChangeOCGName
Syntax:
LBOOL pdfChangeOCGName(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// OCG handle
const char* Value) // New name (required)
The function changes the name of an Optional Content Group (OCG). See also Layers (Optional
Content).
Remarks:
This function is implemented as in Ansi and Unicode compatible variant.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Previous topic: ChangeJavaScriptAction, ChangeJavaScriptName
Next topic: ChangeSeparationColor, CheckCollection, CheckConformance