Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.ChangeLinkAnnot

Changes the link of a file link or web link annotation.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 5.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.ChangeLinkAnnot"; PDF; AnnotationHandle; URL )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
AnnotationHandle The annotation index. 5
URL URL or file path. "http://www.mbsplugins.de/"

Result

Returns OK or error.

Description

Changes the link of a file link or web link annotation.
The parameter AnnotationHandle 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. 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.
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 DynaPDF.FindLinkAnnot if you need to change an imported file link or web link annotation.

See also ChangeLinkAnnot function in DynaPDF manual.

See also

This function checks for a license.

Created 25th November 2014, last changed 25th November 2014


DynaPDF.ChangeJavaScriptName - DynaPDF.ChangeNamedDest