Package com.winnovative_software
Class ExplicitDestination
java.lang.Object
com.winnovative_software.ExplicitDestination
Represents a destination in the PDF document for links, bookmarks and other
interactive PDF features
-
Constructor Summary
ConstructorsConstructorDescriptionExplicitDestination
(PdfPage page) Constructs a destination to the specified pageExplicitDestination
(PdfPage page, PointFloat point) Constructs a destination to the specified location in the specified pageExplicitDestination
(PdfPage page, PointFloat point, DestinationViewMode viewMode) Constructs a destination to the specified location in the specified page and with the specified view mode of the destination page -
Method Summary
Modifier and TypeMethodDescriptiondestPage()
Gets the destination pagepoint()
Gets the destination point in destination pagevoid
setViewMode
(DestinationViewMode viewMode) Set the view mode of the destination pagevoid
setZoomPercentage
(int zoomPercentage) Sets the zoom percentage of the destination page when viewed in the viewer and the view mode is XYZ (for example a 100 value will not zoom the page)viewMode()
Gets the view mode of the destination pageint
Gets the zoom percentage of the destination page when viewed in the viewer and the view mode is XYZ (for example a 100 value will not zoom the page)
-
Constructor Details
-
ExplicitDestination
Constructs a destination to the specified page- Parameters:
page
- the destination page
-
ExplicitDestination
Constructs a destination to the specified location in the specified page- Parameters:
page
- the destination pagepoint
- the destination point in page
-
ExplicitDestination
Constructs a destination to the specified location in the specified page and with the specified view mode of the destination page- Parameters:
page
- the destination pagepoint
- the destination point in pageviewMode
- the destination view mode
-
-
Method Details
-
point
Gets the destination point in destination page- Returns:
- the destination point in destination page
-
zoomPercentage
public int zoomPercentage()Gets the zoom percentage of the destination page when viewed in the viewer and the view mode is XYZ (for example a 100 value will not zoom the page)- Returns:
- the zoom percentage
-
setZoomPercentage
public void setZoomPercentage(int zoomPercentage) Sets the zoom percentage of the destination page when viewed in the viewer and the view mode is XYZ (for example a 100 value will not zoom the page)- Parameters:
zoomPercentage
- the zoom percentage to set
-
destPage
Gets the destination page- Returns:
- the destination page
-
viewMode
Gets the view mode of the destination page- Returns:
- the view mode of the destination page
-
setViewMode
Set the view mode of the destination page- Parameters:
viewMode
- the view mode of the destination page to set
-