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
ConstructorDescriptionGoToAction(Input input)
Initializes a new instance of theGoToAction
class using an input to create the PDF, page number, and a zoom option.GoToAction(Input input, int pageOffset)
Initializes a new instance of theGoToAction
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 theGoToAction
class using an input to create the PDF, page number, and a zoom option. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets page Offset.GetsPageZoom
to display the destination.void
setPageOffset(int value)
Sets page Offset.void
setPageZoom(PageZoom value)
SetsPageZoom
to display the destination.
-
Constructor Details
-
GoToAction
Initializes a new instance of theGoToAction
class using an input to create the PDF, page number, and a zoom option.- Parameters:
input
- Any of theImageInput
,DlexInput
,PdfInput
orPageInput
objects to create PDF.pageOffset
- Page number to navigate.pageZoom
-PageZoom
to display the destination.
-
GoToAction
Initializes a new instance of theGoToAction
class using an input to create the PDF, page number, and a zoom option.- Parameters:
input
- Any of theImageInput
,DlexInput
,PdfInput
orPageInput
objects to create PDF.
-
GoToAction
Initializes a new instance of theGoToAction
class using an input to create the PDF, page number, and a zoom option.- Parameters:
input
- Any of theImageInput
,DlexInput
,PdfInput
orPageInput
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
GetsPageZoom
to display the destination.- Returns:
PageZoom
to display the destination.
-
setPageZoom
SetsPageZoom
to display the destination.- Parameters:
value
-PageZoom
to display the destination.
-