Destination 类¶
- class pypdf.generic.Destination(title: str, page: NumberObject | IndirectObject | NullObject | DictionaryObject, fit: Fit)[源代码]¶
基类:
TreeObject
A class representing a destination within a PDF file.
See section 12.3.2 of the PDF 2.0 reference.
- 参数:
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.
- 抛出:
PdfReadError -- If destination type is invalid.
- node: DictionaryObject | None = None¶
- property dest_array: ArrayObject¶
- property left: FloatObject | None¶
Read-only property accessing the left horizontal coordinate.
- property right: FloatObject | None¶
Read-only property accessing the right horizontal coordinate.
- property top: FloatObject | None¶
Read-only property accessing the top vertical coordinate.
- property bottom: FloatObject | None¶
Read-only property accessing the bottom vertical coordinate.
- property color: ArrayObject | None¶
Read-only property accessing the color in (R, G, B) with values 0.0-1.0.
- property font_format: OutlineFontFlag | None¶
Read-only property accessing the font type.
1=italic, 2=bold, 3=both