The Destination Class
- class pypdf.generic.Destination(title: str, page: Union[NumberObject, IndirectObject, NullObject, DictionaryObject], fit: Fit)[source]
Bases:
TreeObject
A class representing a destination within a PDF file.
See section 8.2.1 of the PDF 1.6 reference.
- Parameters
title – Title of this destination.
page – Reference to the page of this destination. Should be an instance of
IndirectObject
.fit – How the destination is displayed.
- Raises
PdfReadError – If destination type is invalid.
- property dest_array: ArrayObject
- getDestArray() ArrayObject [source]
Use
dest_array
instead.Deprecated since version 1.28.3.
- property right: Optional[FloatObject]
Read-only property accessing the right horizontal coordinate.
- property bottom: Optional[FloatObject]
Read-only property accessing the bottom vertical coordinate.
- property color: Optional[ArrayObject]
Read-only property accessing the color in (R, G, B) with values 0.0-1.0.