While exporting document to PDF link annotation has wrong Y coordingate (out of page area). That making the link effectively unusable and absent for users.
Steps to Reproduce:
1. Create document with footnote, make footnote body move to next page.
2. Export to PDF
3. Verify that footnote anchor in text is not clickable
No link available. Clicking on footnote anchor does nothing.
Clicking on footnote anchor should send user to target page with footnote body.
User Profile Reset: Yes
With page Y dimension 841.889763779528
Y coordinate is out of page size 1627.489
4 0 obj
<</Type/Page/Parent 8 0 R/Resources 15 0 R/MediaBox[0 0 595.303937007874 841.889763779528]/Group<</S/Transparency/CS/DeviceRGB/I true>>/Contents 5 0 R>>
7 0 obj
<</Type/Annot/Subtype/Link/Border[0 0 0]/Rect[56.693 1627.489 60.257 1641.289]/Dest[4 0 R/XYZ 73.7 68.239 0]>>
Created attachment 172745 [details]
document to create pdf
Created attachment 172746 [details]
document with broken link
841 - (-785.6) = 1627.489
Correct Y coordinate should be 785.6
Coordinates from file where footnote anchor and footnote body are on the same page
and link is placed correctly(working)
<</Type/Annot/Subtype/Link/Border[0 0 0]/Rect[56.693 771.389 60.257 785.189]/Dest[1 0 R/XYZ 73.7 68.239 0]>>
Georgy Litvinov committed a patch related to this issue.
It has been pushed to "master":
tdf#142741 and tdf#38187 Set valid pages for footnote links PDF export.
It will be available in 7.2.0.
The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
Very nice to see already a fix, I set Assignee, I see that Georgy had a couple of them before.
This one is somewhat duplicate to bug 38187, but better defined.
I see that one-way link (number>text) is fixed, both for footnote and endnote.
Please explain if you intend to fix also other way, text>number.
> Please explain if you intend to fix also other way, text>number.
I plan to fix other way too (working on it), but that would be related to 38187 only.
Thanks. So you may mark this one Fixed.
This was on my personal "annoying" list.
And it was regression from 3.5, one-way worked in LO 3.4, so preBibisect.