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
| Constructor | Description |
|---|---|
| LinkAnnotation | Creates new Link annotation on the specified page. |
Methods
| Method | Description |
|---|---|
| accept | Accepts visitor object to process the annotation. |
| getAction | Get an action to be performed when the link annotation is activated. |
| getAnnotationType | Gets type of annotation. |
| getDestination | Get a destination to be displayed when the annotation is activated. |
| getHighlighting | Get the visual effect to be used when the mouse button is pressed or held down inside its active area. |
| 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. |
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.