Bug 161583 - PDF exported from Writer show a hyperlink’s text also as it's tool tip in Acrobat Reader
Summary: PDF exported from Writer show a hyperlink’s text also as it's tool tip in Acr...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
24.2.3.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2024-06-15 08:10 UTC by Burkhard Erdlenbruch
Modified: 2024-06-17 04:29 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
That's how the link is set up in Writer. (182.26 KB, image/jpeg)
2024-06-15 09:07 UTC, Burkhard Erdlenbruch
Details
That's how the tooltip simply duplicates the text in Acrobat Reader. (122.34 KB, image/jpeg)
2024-06-15 09:10 UTC, Burkhard Erdlenbruch
Details
And that's how the same Reader displays the too tip in an older version of the document, exported from an older Writer version. (127.00 KB, image/jpeg)
2024-06-15 09:17 UTC, Burkhard Erdlenbruch
Details
That's the document as exported today with LO 24.2.3.2 (x86_64), Windows 11. (7.85 MB, application/pdf)
2024-06-15 09:42 UTC, Burkhard Erdlenbruch
Details
And that's the same document exported in 2019 with the Writer version up to date back then under Windows 10. (12.74 MB, application/pdf)
2024-06-15 09:44 UTC, Burkhard Erdlenbruch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Burkhard Erdlenbruch 2024-06-15 08:10:14 UTC
Description:
That’s redundant and leaves readers of the PDF vulnerable to bad or malicious links. Until a few years ago, the hyperlink was displayed as tool tip so the reader of the PDF could check it.

For instance, a hyperlink “https://foobar.com” is not visible in the document but the text “Foobar Company”, and “https://foobar.com” should be displayed as tool tip instead (as has been before).

Steps to Reproduce:
1. In a Writer document, create a hyperlink to a remote web page.
2. Export the document to PDF.
3. Open the document in Reader and move the mouse pointer over the hyperlink.

Actual Results:
The text of the hyperlink is shown as tool tip, for instance "Foobar Company".

Expected Results:
The tool tip should show the actual hyperlink so I can check it before clicking, for instance "https://foobar.com".


Reproducible: Always


User Profile Reset: No

Additional Info:
Hint I got from EarnestAl:

I suspect it was a result of tdf#140617 or linked bugs but it leaves readers of the pdf vulnerable to bad or malicious links.
Links are confused with alternative text so there should be another method so that both can be displayed.
Comment 1 Robert Großkopf 2024-06-15 08:54:55 UTC
Tested with 

Version: 24.2.4.2 (X86_64) / LibreOffice Community
Build ID: 51a6219feb6075d9a4c46691dcfe0cd9c4fff3c2
CPU threads: 6; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded

Wrote some text with a hyperlink.
Opened "Edit Hyperlink".
Edited "Hyperlinks Settings" → "Text".

Then saved the document, exported to *.pdf and opened the pdf-file.
PDF shows the edited "Text" and will show the hyperlink in tooltip.
All tested under OpenSUSE 15.6 64bit rpm Linux with viewer "Okular".

So I could not confirm any buggy behavior here.
Comment 2 Burkhard Erdlenbruch 2024-06-15 09:07:31 UTC
Created attachment 194746 [details]
That's how the link is set up in Writer.
Comment 3 Burkhard Erdlenbruch 2024-06-15 09:10:08 UTC
Created attachment 194747 [details]
That's how the tooltip simply duplicates the text in Acrobat Reader.
Comment 4 Burkhard Erdlenbruch 2024-06-15 09:17:03 UTC
Created attachment 194748 [details]
And that's how the same Reader displays the too tip in an older version of the document, exported from an older Writer version.
Comment 5 Robert Großkopf 2024-06-15 09:32:42 UTC
Upload a *.pdf-Datei, which has been created with LO and will show this behavior. Screenshots won't help, because it shows different behavior here: Tooltip shows the whole link, not only the "Name".

Also add the version of LO you are using. Might be it isn't the newest version and the bug doesn't exist any more.
Comment 6 Burkhard Erdlenbruch 2024-06-15 09:42:32 UTC
Created attachment 194749 [details]
That's the document as exported today with LO 24.2.3.2 (x86_64), Windows 11.
Comment 7 Burkhard Erdlenbruch 2024-06-15 09:44:33 UTC
Created attachment 194750 [details]
And that's the same document exported in 2019 with the Writer version up to date back then under Windows 10.
Comment 8 Robert Großkopf 2024-06-15 10:00:30 UTC
Have tested both documents. Seems to be page 4 - right?
Both documents will show the whole link in tooltip here with PDF reader Okular.
The same is shown with Foxit PDF-reader installed here under Linux with Wine.

So we need a person testing this with Windows and Acrobat.
Try to post the buggy behavior here: https://ask.libreoffice.org/c/german/6
There we could find testers without any problem.
Comment 9 Burkhard Erdlenbruch 2024-06-15 15:44:51 UTC
Now I tried with the latest Foxit version under Windows 11. Indeed the PDF exported today (fourth attachment) displays the links correctly as tool tips.

So the problem seems to be in the combination of the recent versions of LO and Acrobat Reader.
Comment 10 Robert Großkopf 2024-06-15 16:58:04 UTC
Seems to be a special bug in combination with Acrobat Reader and LO.
See https://ask.libreoffice.org/t/tooltips-zu-hyperlinks-nicht-richtig-in-acrobat-reader-in-pdfs-die-aus-lo-writer-exportiert-wurden/106931

Older document shows the link as tooltip in Acrobat Reader, newer document only shows the text content as tooltip.

Set this one to NEW and regression.
Comment 11 Burkhard Erdlenbruch 2024-06-16 21:11:39 UTC
Checked my PDF documents for this bug:
There are some from last April, of course all of them with the bug.
The next PDF backwards in time has been exported from LOW 7.3 at 2022-12-31 and it displays links correctly.