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
I'm adding some text to each page of pdf and saving the doc to new file. The below error is seen in the console while saving the doc MuPDF error: format error: object out of range (179 0 R); xref size 178
You did not provide a file showing the problem. Without this, no dealing with the problem is possible.
This is very probably a damaged file according to the messages. The PDF contains references to non-existent objects.
Because of this (point 2.) I am going to close this post for now.
As we know nothing about your input file, our only advice is to check for any errors directly after open (e.g. doc.is_repaired and more).
Description of the bug
I'm adding some text to each page of pdf and saving the doc to new file. The below error is seen in the console while saving the doc
MuPDF error: format error: object out of range (179 0 R); xref size 178
How to reproduce the bug
`
doc = fitz.open(input_pdf)
total_pages = doc.page_count
`
PyMuPDF version
1.24.11
Operating system
Linux
Python version
3.10
The text was updated successfully, but these errors were encountered: