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):