arminstraub / krop

A simple graphical tool to crop the pages of PDF files, written in Python/Qt
http://arminstraub.com/software/krop
GNU General Public License v3.0
116 stars 16 forks source link

Add optional PyQt6 support, remove support for PyQt4 and python2. #42

Open PunkPangolin opened 10 months ago

PunkPangolin commented 10 months ago

Adds optional PyQt6 support with the "--use-qt6" flag. PyQt6 is automatically used if PyQt5 is not found. Breaking backwards compatibility with PyQt4 and python2 was necessary to be able to use PyQt6. PyQt6 requires PyMuPDF to be installed, as there are no Python bindings for poppler-qt6.

My suggestion would be to move to PyQt6 + PyMuPDF (with PyQt5 and perhaps python-poppler-qt5 as a fallback) as the default in the future.