public 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.
Modifier and Type | Method and Description |
---|---|
static DirectDestination |
createDynamicObject(long handle) |
Page |
getPage()
The page in the document that this destination is pointing to.
|
getTarget
equals, hashCode
public static DirectDestination createDynamicObject(long handle)
public Page getPage() throws CorruptException
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.