wxWidgets / Phoenix

wxPython's Project Phoenix. A new implementation of wxPython, better, stronger, faster than he was before.
http://wxpython.org/
2.34k stars 516 forks source link

pdfviewer: Add support for pymupdf renaming #2609

Closed Infernio closed 2 months ago

Infernio commented 2 months ago

The 'fitz' module got renamed to 'pymupdf' in 1.24.3. Prepare for an eventual deprecation and removal by importing from pymupdf first and falling back to fitz only if that fails.

I also got rid of the other 'fitz'es in the file via 'fitz as pymupdf', since pymupdf.open is much easier to read than fitz.open.

swt2c commented 2 months ago

Thanks!