You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will break any code using PyMuPDF to find text based on predetermined color codes!
As to what caused this, the MuPDF release notes (https://mupdf.com/releases/history) for 1.25.0 RC2 do say that color changed to rgba with the addition of alpha channel.... I can't find anything that seems related in the PyMuPDF github.
(Note also that grouping of text into blocks/lines/spans changed between 1.24.14 and 1.25.0.)
How to reproduce the bug
See description above.
PyMuPDF version
1.25.0
Operating system
Linux
Python version
3.11
The text was updated successfully, but these errors were encountered:
Description of the bug
When upgrading PyMuPDF from 1.24.14 to 1.25.0, the reported text color codes have changed.
I tested this with this code:
With output for PyMuPDF version 1.24.14 having positive colours numbers:
and output for PyMuPDF version 1.25.0 having negative colour numbers:
This will break any code using PyMuPDF to find text based on predetermined color codes!
As to what caused this, the MuPDF release notes (https://mupdf.com/releases/history) for 1.25.0 RC2 do say that
color
changed torgba
with the addition of alpha channel.... I can't find anything that seems related in the PyMuPDF github.(Note also that grouping of text into blocks/lines/spans changed between 1.24.14 and 1.25.0.)
How to reproduce the bug
See description above.
PyMuPDF version
1.25.0
Operating system
Linux
Python version
3.11
The text was updated successfully, but these errors were encountered: