Package com.dynamicpdf.api
Class GoToAction
java.lang.Object
com.dynamicpdf.api.Action
com.dynamicpdf.api.GoToAction
Represents a goto action in a PDF document that navigates
to a specific page using page number and zoom options.
-
Constructor Summary
ConstructorsConstructorDescriptionGoToAction(Input input)Initializes a new instance of theGoToActionclass using an input to create the PDF, page number, and a zoom option.GoToAction(Input input, int pageOffset)Initializes a new instance of theGoToActionclass 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 theGoToActionclass using an input to create the PDF, page number, and a zoom option. -
Method Summary
Modifier and TypeMethodDescriptionintGets page Offset.GetsPageZoomto display the destination.voidsetPageOffset(int value)Sets page Offset.voidsetPageZoom(PageZoom value)SetsPageZoomto display the destination.
-
Constructor Details
-
GoToAction
Initializes a new instance of theGoToActionclass using an input to create the PDF, page number, and a zoom option.- Parameters:
input- Any of theImageInput,DlexInput,PdfInputorPageInputobjects to create PDF.pageOffset- Page number to navigate.pageZoom-PageZoomto display the destination.
-
GoToAction
Initializes a new instance of theGoToActionclass using an input to create the PDF, page number, and a zoom option.- Parameters:
input- Any of theImageInput,DlexInput,PdfInputorPageInputobjects to create PDF.
-
GoToAction
Initializes a new instance of theGoToActionclass using an input to create the PDF, page number, and a zoom option.- Parameters:
input- Any of theImageInput,DlexInput,PdfInputorPageInputobjects 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
GetsPageZoomto display the destination.- Returns:
PageZoomto display the destination.
-
setPageZoom
SetsPageZoomto display the destination.- Parameters:
value-PageZoomto display the destination.
-