Class GoToAction

java.lang.Object
com.dynamicpdf.api.Action
com.dynamicpdf.api.GoToAction

public class GoToAction extends Action
Represents a goto action in a PDF document that navigates to a specific page using page number and zoom options.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GoToAction​(Input input)
    Initializes a new instance of the GoToAction class using an input to create the PDF, page number, and a zoom option.
    GoToAction​(Input input, int pageOffset)
    Initializes a new instance of the GoToAction class using an input to create the PDF, page number, and a zoom option.
    GoToAction​(Input input, int pageOffset, PageZoom pageZoom)
    Initializes a new instance of the GoToAction class using an input to create the PDF, page number, and a zoom option.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets page Offset.
    Gets PageZoom to display the destination.
    void
    setPageOffset​(int value)
    Sets page Offset.
    void
    Sets PageZoom to display the destination.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GoToAction

      public GoToAction(Input input, int pageOffset, PageZoom pageZoom)
      Initializes a new instance of the GoToAction class using an input to create the PDF, page number, and a zoom option.
      Parameters:
      input - Any of the ImageInput, DlexInput, PdfInput or PageInput objects to create PDF.
      pageOffset - Page number to navigate.
      pageZoom - PageZoom to display the destination.
    • GoToAction

      public GoToAction(Input input)
      Initializes a new instance of the GoToAction class using an input to create the PDF, page number, and a zoom option.
      Parameters:
      input - Any of the ImageInput, DlexInput, PdfInput or PageInput objects to create PDF.
    • GoToAction

      public GoToAction(Input input, int pageOffset)
      Initializes a new instance of the GoToAction class using an input to create the PDF, page number, and a zoom option.
      Parameters:
      input - Any of the ImageInput, DlexInput, PdfInput or PageInput objects to create PDF.
      pageOffset - Page number to navigate.
  • Method Details

    • getPageOffset

      public int getPageOffset()
      Gets page Offset.
      Returns:
      Page Offset.
    • setPageOffset

      public void setPageOffset(int value)
      Sets page Offset.
      Parameters:
      value - Page Offset.
    • getPageZoom

      public PageZoom getPageZoom()
      Gets PageZoom to display the destination.
      Returns:
      PageZoom to display the destination.
    • setPageZoom

      public void setPageZoom(PageZoom value)
      Sets PageZoom to display the destination.
      Parameters:
      value - PageZoom to display the destination.