Skip to content

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 jmoraleda force-pushed the variable-page-size-pdfviewer branch from 55020c3 to 7e0e98f Compare March 29, 2024 19:00
@jmoraleda jmoraleda force-pushed the variable-page-size-pdfviewer branch from 7e0e98f to 87aae0c Compare April 10, 2024 15:21
@jmoraleda jmoraleda force-pushed the variable-page-size-pdfviewer branch from 87aae0c to 7848269 Compare June 20, 2024 22:36
@jmoraleda jmoraleda force-pushed the variable-page-size-pdfviewer branch from 7848269 to 2dc886a Compare September 21, 2024 22:56
@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
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