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
Note how the xref has disappeared. The links in the original file are working perfectly fine. An exact copy with the links deleted and immediately re-inserted contains links that don't work (due to the missing xref?).
PyMuPDF version
1.23.8
Operating system
Windows
Python version
3.9
The text was updated successfully, but these errors were encountered:
The named links in list page.get_links() have no key "name" but "nameddest" instead.
When reusing an item of this list for updates we therefore must take this situation into account and fall back to "nameddest" if "name" is not present.
The named links in list page.get_links() have no key "name" but "nameddest" instead.
When reusing an item of this list for updates we therefore must take this situation into account and fall back to "nameddest" if "name" is not present.
Description of the bug
The xref of the link gets set to 0 even if it exists.
How to reproduce the bug
How to reproduce the bug: run the bug-revealing script provided above on a pdf document containing named-destination links.
Sample output of the bug-revealing script:
{'kind': 4, 'xref': 2395, 'from': Rect(266.02301025390625, 387.9209899902344, 273.0050048828125, 399.0389709472656), 'name': 'nameddest=prob01.chap1.label', 'id': ''}
{'kind': 4, 'xref': 0, 'from': Rect(266.02301025390625, 387.9209899902344, 273.0050048828125, 399.0389709472656), 'name': 'nameddest=prob01.chap1.label'}
Note how the xref has disappeared. The links in the original file are working perfectly fine. An exact copy with the links deleted and immediately re-inserted contains links that don't work (due to the missing xref?).
PyMuPDF version
1.23.8
Operating system
Windows
Python version
3.9
The text was updated successfully, but these errors were encountered: