Skip to content

Commit

Permalink
DOC: Fix Destination.page parameter (#426)
Browse files Browse the repository at this point in the history
The constructor expects the page argument to be a reference to a page, rather than the integer index of the page in the document.
  • Loading branch information
marramgrass authored Apr 6, 2022
1 parent abed048 commit eea0b72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PyPDF2/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,8 @@ class Destination(TreeObject):
See section 8.2.1 of the PDF 1.6 reference.
:param str title: Title of this destination.
:param int page: Page number of this destination.
:param IndirectObject page: Reference to the page of this destination. Should
be an instance of :class:`IndirectObject<PyPDF2.generic.IndirectObject>`.
:param str typ: How the destination is displayed.
:param args: Additional arguments may be necessary depending on the type.
:raises PdfReadError: If destination type is invalid.
Expand Down

0 comments on commit eea0b72

Please sign in to comment.