pdftools_toolbox.pdf.navigation.direct_destination
Classes
|
A destination that directly points to a specific location in the document. |
- class pdftools_toolbox.pdf.navigation.direct_destination.DirectDestination(handle)[source]
Bases:
Destination
,ABC
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
pdftools_toolbox.pdf.navigation.location_zoom_destination.LocationZoomDestination
should be preferred in most cases.- property page: Page
The page in the document that this destination is pointing to.
- Returns:
pdftools_toolbox.pdf.page.Page
- Raises:
StateError – the object has already been closed.
StateError – the associated document has already been closed.
pdftools_toolbox.corrupt_error.CorruptError – the page could not be found or does not exist in the document.