Skip to content
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

Add support to python only pdfviewer for displaying pdf files where not all pages are the same size #2480

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

jmoraleda
Copy link
Contributor

The current PDF viewer assumes all pages in the PDF document being displayed are of the same size. When this is not the case the PDF does not display correctly.

This PR refactors the viewer so that PDF documents containing pages of different sizes display correctly.

I have thoroughly tested this PR in GTK and MSW and have found it to produce the correct results and have performance comparable to the previous version including for larger documents.

@jmoraleda
Copy link
Contributor Author

jmoraleda commented Dec 21, 2023

See discussion and review of this PR in #2492 (comment)

@jmoraleda
Copy link
Contributor Author

I wonder if we could merge this in.

It has been reviewed thoroughly at See discussion and review of this PR in #2492 (comment). That was an alternative PR for the same feature, and as you can see on the comments, all reviewers including the proponent of that PR agreed that this one was a better implementation.

Furthermore it has been thoroughly tested for several months by many people as part of the wxPython-Meticy release: https://pypi.org/project/wxPythonMeticy/

@jmoraleda
Copy link
Contributor Author

@Infernio I noticed you worked on the python only pdfviewer recently. Could you by any chance test this PR and provide feedback? Thank you!

@Infernio
Copy link
Contributor

Infernio commented Sep 23, 2024

I don't use the pure Python one, just the PyMuPDF one. That said, from looking over the commit, it seems fine.

@swt2c swt2c merged commit 31b687f into wxWidgets:master Sep 23, 2024
29 checks passed
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.

3 participants