Description of the bug
Bad widgets in source pages lead to exceptions when using insert_pdf(source, widgets=True).
Should be handled gracefully with a warning.
sample.pdf
How to reproduce the bug
Execute this script:
import pymupdf
src = pymupdf.open("sample.pdf")
doc = pymupdf.open()
doc.insert_pdf(doc, widgets=True, progress=1)
PyMuPDF version
1.26.3
Operating system
Other
Python version
3.13
Description of the bug
Bad widgets in source pages lead to exceptions when using
insert_pdf(source, widgets=True).Should be handled gracefully with a warning.
sample.pdf
How to reproduce the bug
Execute this script:
PyMuPDF version
1.26.3
Operating system
Other
Python version
3.13