Skip to content

Commit

Permalink
Add .get_textmap.cache_clear() to page.close()
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvine committed Jun 11, 2024
1 parent 4daf0aa commit 0a26f05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pdfplumber/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ def get_attr(key: str, default: Any = None) -> Any:

def close(self) -> None:
self.flush_cache()
self.get_textmap.cache_clear()

@property
def width(self) -> T_num:
Expand Down

0 comments on commit 0a26f05

Please sign in to comment.