Class DirectDestination
- java.lang.Object
-
- com.pdftools.toolbox.internal.NativeBase
-
- com.pdftools.toolbox.internal.NativeObject
-
- com.pdftools.toolbox.pdf.navigation.Destination
-
- com.pdftools.toolbox.pdf.navigation.DirectDestination
-
- Direct Known Subclasses:
FitHeightDestination
,FitPageDestination
,FitRectangleDestination
,FitWidthDestination
,LocationZoomDestination
public abstract class DirectDestination extends Destination
A destination that directly points to a specific location in the document.
Note: Many PDF viewers support different viewing modes like "fit page" or "fit width". Most destination types will change the current viewing mode in those viewers.
Changing the viewing mode is usually not very well received by users and thus a
LocationZoomDestination
should be preferred in most cases.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page
getPage()
The page in the document that this destination is pointing to.-
Methods inherited from class com.pdftools.toolbox.pdf.navigation.Destination
getTarget
-
Methods inherited from class com.pdftools.toolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
getPage
public Page getPage() throws CorruptException
The page in the document that this destination is pointing to.- Throws:
java.lang.IllegalStateException
- the object has already been closed.java.lang.IllegalStateException
- the associated document has already been closed.CorruptException
- the page could not be found or does not exist in the document.
-
-