PyMuPDF icon indicating copy to clipboard operation
PyMuPDF copied to clipboard

Modified util_make_irect() to capture area more robustly;

Open psambit9791 opened this issue 4 months ago • 4 comments

Relates to issue #3163.

This updates updates the area of the rectangle based on the floating point. Instead of simply typecasting from float to int, this function now floors the coordinates for the top left corner and ceils the coordinates for the bottom right corner.

This allows the function to more robustly detect the rectangle.

psambit9791 avatar Feb 16 '24 01:02 psambit9791

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

github-actions[bot] avatar Feb 16 '24 01:02 github-actions[bot]

I have read the CLA Document and I hereby sign the CLA

psambit9791 avatar Feb 16 '24 10:02 psambit9791

[I think that the failure of "Test quick" is due to a problem with the latest mupdf, and not this PR.]

I've rebased this PR to get latest changes that fix test_quick.