Class LinkAnnotation

java.lang.Object
org.openpdf.renderer.annotation.PDFAnnotation
org.openpdf.renderer.annotation.LinkAnnotation

public class LinkAnnotation extends PDFAnnotation
PDF annotation describing a link to either a location within the current document, a location in another PDF file, an application/file to be opened or a web site. In the PDF structure a link can be a destination ("DEST") or an action ("A"). Both ways are handled as actions internally, i.e. for getting the links destination, you should get the action from this annotation object. It can be one of the following actions:
  • GotoAction - for a file internal destination
  • GoToRAction - for a destination in a remote PDF file
  • GoToEAction - for a destination in an embedded PDF file
  • UriAction - for a web link
  • LaunchAction - for launching an application/opening a file
  • Since:
    06.07.2009
    • Field Details

    • Constructor Details

    • Method Details

      • getAction

        public PDFAction getAction()
        Get the contained PDFAction
        Returns:
        PDFAction - can be null in case the contains a destination object