Skip to content

Commit

Permalink
correct docs for PdfPage.get_objects()
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Sep 15, 2022
1 parent 06543ab commit 5774cfd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pypdfium2/_helpers/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def get_objects(self, max_depth=2, form=None, level=0):
Maximum recursion depth to consider when descending into Form XObjects.
Yields:
(PdfPageObject, int): Page object and nesting level.
:class:`.PdfPageObject`: The page object.
"""

if form is None:
Expand Down Expand Up @@ -551,8 +551,9 @@ class PdfPageObject:
Attributes:
raw (FPDF_PAGEOBJECT): The underlying PDFium pageobject handle.
type (int): The type of the object (:data:`FPDF_PAGEOBJ_...`).
page (PdfPage): Reference to the page this pageobject belongs to.
level (int): Nesting level signifying the number of parent Form XObjects. Zero if the object is not nested in a Form XObject.
type (int): The type of the object (:data:`FPDF_PAGEOBJ_...`).
"""

def __init__(self, raw, page, level=0):
Expand Down

0 comments on commit 5774cfd

Please sign in to comment.