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
Hi!, i have an error when i try to modify an url in a pdf. the error disappear when you remove the ".super()"
Traceback
This is the complete traceback I see:
Traceback (most recent call last):
File "test.py", line 328, in <module>
Send_Accessing_Message(user, response_message)
File "test.py", line 240, in Send_Accessing_Message
pdf[0].update_link(links[0])
File "C:\Users\computer_name\AppData\Local\pypoetry\Cache\virtualenvs\main-S6_UyEDV-py3.8\lib\site-packages\fitz\utils.py", line 1716, in update_link
page.parent.update_object(lnk["xref"], annot, page=page)
File "C:\Users\computer_name\AppData\Local\pypoetry\Cache\virtualenvs\main-S6_UyEDV-py3.8\lib\site-packages\fitz\__init__.py", line 5615, in update_object
JM_refresh_links( mupdf.pdf_page_from_fz_page(page.super()))
AttributeError: 'Page' object has no attribute 'super'
How to reproduce the bug
poetry run python test.py
test.py
importfitz# update the linkwithfitz.open("modify-url.pdf") aspdf:
links=pdf[0].get_links()
links[0]['uri'] ="https://www.ddg.gg"pdf[0].update_link(links[0])
pdf.save("output.pdf")
The text was updated successfully, but these errors were encountered:
ghost
changed the title
AttributeError: 'Page' object has no attribute 'super'
update_link(): AttributeError: 'Page' object has no attribute 'super'
Jan 21, 2024
Description of the bug
Hi!, i have an error when i try to modify an url in a pdf. the error disappear when you remove the ".super()"
Traceback
This is the complete traceback I see:
How to reproduce the bug
test.py
modify-url.pdf
PyMuPDF version
1.23.16
Operating system
Windows
Python version
3.12
The text was updated successfully, but these errors were encountered: