Class PdfAction


public class PdfAction extends PdfDictionary
A PdfAction defines an action that can be triggered from a PDF file.
See Also:
  • Field Details

    • FIRSTPAGE

      public static final int FIRSTPAGE
      A named action to go to the first page.
      See Also:
    • PREVPAGE

      public static final int PREVPAGE
      A named action to go to the previous page.
      See Also:
    • NEXTPAGE

      public static final int NEXTPAGE
      A named action to go to the next page.
      See Also:
    • LASTPAGE

      public static final int LASTPAGE
      A named action to go to the last page.
      See Also:
    • PRINTDIALOG

      public static final int PRINTDIALOG
      A named action to open a print dialog.
      See Also:
  • Constructor Details

    • PdfAction

      public PdfAction()
      Create an empty action.
    • PdfAction

      public PdfAction(URL url)
      Constructs a new PdfAction of Subtype URI.
      Parameters:
      url - the Url to go to
    • PdfAction

      public PdfAction(URL url, boolean isMap)
      Construct a new PdfAction of Subtype URI that accepts the x and y coordinate of the position that was clicked.
      Parameters:
      url - the URL
      isMap - true if it is a map, false otherwise
    • PdfAction

      public PdfAction(String url)
      Constructs a new PdfAction of Subtype URI.
      Parameters:
      url - the url to go to
    • PdfAction

      public PdfAction(String url, boolean isMap)
      Construct a new PdfAction of Subtype URI that accepts the x and y coordinate of the position that was clicked.
      Parameters:
      url - the URL
      isMap - true if it is a map, false otherwise
    • PdfAction

      public PdfAction(String filename, String name)
      Constructs a new PdfAction of Subtype GoToR.
      Parameters:
      filename - the file name to go to
      name - the named destination to go to
    • PdfAction

      public PdfAction(String filename, int page)
      Constructs a new PdfAction of Subtype GoToR.
      Parameters:
      filename - the file name to go to
      page - the page destination to go to
    • PdfAction

      public PdfAction(int named)
      Implements name actions. The action can be FIRSTPAGE, LASTPAGE, NEXTPAGE, PREVPAGE and PRINTDIALOG.
      Parameters:
      named - the named action