LinkAnnotation

Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.Annotation com.aspose.pdf.LinkAnnotation, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation com.aspose.pdf.LinkAnnotation, com.aspose.pdf.Annotation, com.aspose.pdf.LinkAnnotation

All Implemented Interfaces: com.aspose.ms.System.ICloneable

public final class LinkAnnotation extends Annotation

Represents either a hypertext link to a destination elsewhere in the document or an action to be performed.

Constructors

ConstructorDescription
LinkAnnotationCreates new Link annotation on the specified page.

Methods

MethodDescription
acceptAccepts visitor object to process the annotation.
getActionGet an action to be performed when the link annotation is activated.
getAnnotationTypeGets type of annotation.
getDestinationGet a destination to be displayed when the annotation is activated.
getHighlightingGet the visual effect to be used when the mouse button is pressed or held down inside its active area.
setActionSet an action to be performed when the link annotation is activated.
setDestinationSet a destination to be displayed when the annotation is activated.
setHighlightingSet the visual effect to be used when the mouse button is pressed or held down inside its active area.

LinkAnnotation

Creates new Link annotation on the specified page.

accept

Accepts visitor object to process the annotation.

getAction

public PdfAction getAction()

Get an action to be performed when the link annotation is activated.

Returns: PdfAction value

getAnnotationType

public AnnotationType getAnnotationType()

Gets type of annotation.

Returns: AnnotationType element @see AnnotationType

getDestination

public IAppointment getDestination()

Get a destination to be displayed when the annotation is activated.

Returns: IAppointment value

getHighlighting

public HighlightingMode getHighlighting()

Get the visual effect to be used when the mouse button is pressed or held down inside its active area.

Returns: HighlightingMode element @see HighlightingMode

setAction

Set an action to be performed when the link annotation is activated.

setDestination

Set a destination to be displayed when the annotation is activated.

setHighlighting

Set the visual effect to be used when the mouse button is pressed or held down inside its active area.