Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10831,19 +10831,10 @@ def clip_to_rect(self, rect):
mupdf.pdf_clip_page(pdfpage, pclip)
JM_refresh_links(pdfpage)

def get_layout(self):
def get_layout(self, **kwargs):
"""Try to access layout information."""

if self.layout_information is not None:
# layout information already present
return

if not _get_layout:
# no layout information available
return

layout_info = _get_layout(self)
self.layout_information = layout_info
if _get_layout:
self.layout_information = _get_layout(self, **kwargs)

@property
def artbox(self):
Expand Down
Loading