From efc07f1c3d6fece14631e4e5fc64d11e141509ba Mon Sep 17 00:00:00 2001 From: "Jorj X. McKie" Date: Thu, 18 Jun 2026 09:37:20 -0400 Subject: [PATCH] Rework Table Handling Enable passing keyword parameters to the Layout module. --- src/__init__.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/__init__.py b/src/__init__.py index ca029b7d1..d93c1078c 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -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):