PyMuPDF icon indicating copy to clipboard operation
PyMuPDF copied to clipboard

Rework / remove method reload_page

Open JorjMcKie opened this issue 7 months ago • 0 comments

We previously refreshed a Page in memory by simulating navigating away to another page and returning. This has been necessary after certain updates or inserts of annotations and links. This fix basically replaces it with the feature provided by mupdf function pdf_sync_page(), which is now what Page method refresh() does.

This is a tentative update yet: As MuPDF propagates calling pdf_sync_page() over time, we should reduce and eventually retire Page.refresh() and Document.reload_page().

JorjMcKie avatar Jul 11 '25 11:07 JorjMcKie