Skip to content

Rework / remove method reload_page #4602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Rework / remove method reload_page #4602

wants to merge 1 commit into from

Conversation

JorjMcKie
Copy link
Collaborator

@JorjMcKie JorjMcKie commented Jul 11, 2025

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 JorjMcKie force-pushed the use-sync-page branch 2 times, most recently from 0924dc1 to 32d4d54 Compare July 11, 2025 14:22
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(9 over time, we should reduce and eventually retire Page.refresh() and Document.reload_page().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant