I tried to use update_object() to fix the cross-reference, but an error occurred. #4702
Replies: 4 comments 4 replies
-
pymupdf-1.25.5 is very old, please upgrade to the latest version. In particular, the incorrect call of RAISEPY() with "bad xref" was fixed a while ago. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I have created a test with your code, and with the current pymupdf-1.26.4 it runs without raising an exception, though there is a warning from mupdf
Is your code modifying the document before it does the xref loop? |
Beta Was this translation helpful? Give feedback.
-
Please post a full reproducer. For example it needs to specify |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
code:
error:
version: pymupdf==1.25.5
platform: linux
Beta Was this translation helpful? Give feedback.
All reactions