### Description of the bug For attached file, TexWriter text insertions and `.insert_htmlbox` will fail. ### How to reproduce the bug ```python doc=pymupdf.open("FzErrorArgument_single_page.pdf") page=doc[0] page.insert_htmlbox((100,100,200,200),"Hallo") ``` Will fail - similar for TextWriter. [FzErrorArgument_single_page.pdf](https://github.com/user-attachments/files/18103297/FzErrorArgument_single_page.pdf) ### PyMuPDF version 1.25.1 ### Operating system Other ### Python version 3.12