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

DynaPDF Manual - Page 166

Previous Page 165   Index   Next Page 167

Function Reference
Page 166 of 750
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.
ChangeSeparationColor
Syntax:
LBOOL pdfChangeSeparationColor(
const PPDF* IPDF,
// Instance pointer
UI32 CSHandle,
// Handle of the separation color space
UI32 NewColor,
// New color in the alternate color space
TExtColorSpace Alternate, // Alternate color space
SI32 AltHandle)
// Color space handle or -1 for device spaces
The function changes the color of a separation color space. The new color value must be defined in
the alternate color space. The alternate color space can be any device or ICC based color space
including Lab. If a non-device color space is used, the parameter AltHandle must be set to the color
space handle of the alternate color space.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: ChangeJavaScriptName

Next topic: CheckConformance