Class PdfAction


public class PdfAction extends PdfDictionary
A PdfAction defines an action that can be triggered from a PDF file.
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(String url)
      Constructs a new PdfAction of Subtype URI.
      Parameters:
      url - the url to go to
    • 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
    • PdfAction

      public PdfAction(String application, String parameters, String operation, String defaultDir)
      Launches an application or a document.
      Parameters:
      application - the application to be launched or the document to be opened or printed.
      parameters - (Windows-specific) A parameter string to be passed to the application. It can be null.
      operation - (Windows-specific) the operation to perform: "open" - Open a document, "print" - Print a document. It can be null.
      defaultDir - (Windows-specific) the default directory in standard DOS syntax. It can be null.