pdftools_toolbox.pdf.navigation.direct_destination

Classes

DirectDestination(handle)

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: