dsanson / termpdf.py

A graphical pdf and epub reader that works inside the kitty terminal
MIT License
496 stars 30 forks source link

Change deprecated method "invertIRect" in PyMuPDF 1.19+ Pixmap class #24

Closed the-fermi-paradox closed 2 years ago

the-fermi-paradox commented 2 years ago

In PyMuPDF versions after 1.19, Pixmap will no longer have the method "invertIRect" available.

This warning is visible whenever inverting a pdf's colorscheme with termpdf.py. This changes the method to invert_irect and fixes the issue.