PyMuPDF icon indicating copy to clipboard operation
PyMuPDF copied to clipboard

Update Document to check the /XYZ len

Open tamdao opened this issue 1 year ago • 3 comments

The issue arises because some PDFs return /XYZ coordinates in the format /XYZ x y instead of /XYZ x y z. This discrepancy causes the code to fail when attempting to unpack three values from an array that only contains two.

tamdao avatar Jul 07 '24 16:07 tamdao

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

github-actions[bot] avatar Jul 07 '24 16:07 github-actions[bot]

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

tamdao avatar Jul 07 '24 16:07 tamdao

Thank you for spotting this!

JorjMcKie avatar Jul 11 '24 12:07 JorjMcKie

This was fixed in 404ac96d73f4a164b0fc8749e24e4d469412af71. As far as I'm aware, we can close this PR.

felixxm avatar Sep 03 '24 07:09 felixxm

This was fixed in 404ac96. As far as I'm aware, we can close this PR.

Thanks for making us aware! We will close the PR now.

JorjMcKie avatar Sep 03 '24 09:09 JorjMcKie