pdftools_toolbox.pdf.navigation.destination

Classes

Destination(handle)

A destination is a location in the document that can be used as a jump target, e.g. for outline items (bookmarks) or link annotations.

class pdftools_toolbox.pdf.navigation.destination.Destination(handle)[source]

Bases: _NativeObject, ABC

A destination is a location in the document that can be used as a jump target, e.g. for outline items (bookmarks) or link annotations.

property target: DirectDestination

The target destination

For direct destinations, this is just the destination itself.

Returns:

pdftools_toolbox.pdf.navigation.direct_destination.DirectDestination

Raises:
  • StateError – the object has already been closed.

  • StateError – the associated document has already been closed.