Bug 146768 - Hyperlinks (mailto / external URLs) fail in exported PDFs on macOS
Summary: Hyperlinks (mailto / external URLs) fail in exported PDFs on macOS
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.5.2 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 160145 (view as bug list)
Depends on:
Blocks: PDF-Export Hyperlink
  Show dependency treegraph
 
Reported: 2022-01-14 20:41 UTC by stevec893
Modified: 2024-03-25 04:00 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Original odt Writer Document to test hyperlink fail (10.43 KB, application/vnd.oasis.opendocument.text)
2022-01-14 20:41 UTC, stevec893
Details
PDF file, created from LibreOffice under MacOSX, with failed hyperlinks (27.45 KB, application/pdf)
2022-01-20 21:04 UTC, stevec893
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stevec893 2022-01-14 20:41:11 UTC
Created attachment 177552 [details]
Original odt Writer Document to test hyperlink fail

I create a simple odt document in Writer (same problem also affects a 'docx' format file), and insert a hyperlink behind some text in that document (hyperlink can be a 'mailto' or it can be to an external website-page URL). The hyperlink appears good in the Writer document. In PrintPreview, the hyperlink looks good (shown in particular font colour/underlined), but cannot be clicked to open the hyperlink.

The file is then exported to PDF. The PDF document shows the hyperlink (same particular colour/underlined), but no hyperlink is active. Hovering cursor over the hyperlinked text produces no 'hand' icon, and clicking on it does nothing.

Export settings:
General Tab: General section: no options ticked (although I have experimented with various ones, but problem remains); Structure section: no options ticked.
Links Tab: General section: no options ticked; Cross document links section: default mode selected.
Security tab: With password and without (although earlier, it *may* have been only password-protected exports had the problem)

LibreOffice 7.2.5.2 (problem was occurring on at least two prior release versions)
macOS Monterey 12.1 (problem was occurring on earlier MacOS versions)
PDF viewer: Apple 'Preview' or Adobe Acrobat Reader (same problem on each)

I opened a new LibreOffice document, and copied/pasted the odt document's contents, then saved as docx format, then exported to PDF. The hyperlinks *were not* active in that PDF document.

I opened a new 'Pages' text document, and copied/pasted the odt document's contents into it, then exported that Pages file to PDF. The hyperlinks *were* active in that PDF document.

Conclusion: problem is for LibreOffice text document file types only.

I could attach only one file to this bug report, so I chose the odt file, rather than any of the other editable files, or their corresponding PDF exported pdf file.
Comment 1 raal 2022-01-15 06:10:01 UTC
I can confirm for mailto hyperlink. URL works for me 
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 3e94991d7fd3a085549c3a5d4c991688042d2cb9
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded Jumbo
Comment 2 Tex2002ans 2022-01-17 05:44:25 UTC
Both PDF links work for me in:

Version: 7.2.5.2 (x64) / LibreOffice Community
Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

and using Sumatra PDF 3.3.3.

PDF links also work for me when:

- I copied/pasted ODT into new document
- Saved as DOCX
- File > Export As > Export As PDF
Comment 3 Timur 2022-01-17 11:01:24 UTC
I don't confirm, both links work for me in Windows and Linux GTK3. 
So not clear how some reproduce and some not. 
Reporter, please test that PDF in different viewers and attach it here.
Comment 4 stevec893 2022-01-20 21:04:58 UTC
Created attachment 177681 [details]
PDF file, created from LibreOffice under MacOSX, with failed hyperlinks

Attached PDF as requested
Comment 5 stevec893 2022-01-20 21:09:00 UTC
Tks, Timur.

Since I started this bug, I've had opportunity to try an identical content 'docx' source file on a Win10 device, and the PDF was good. As originally reported, the problem occurs only under MacOSX, and not Windows, as also confirmed by other commenters on this bug.

I changed the 'create a PDF' settings in the 'export as PDF' dialogue in LibreOffice on my Mac to match those in my Win10 version of LibreOffice, and recreated an exported PDF. The result on my Mac was a PDF with the same 'bad' hyperlink characteristics. 

I used Safari, Chrome, and  Adobe Acrobat reader on my Mac, as requested, to open the 'failed' PDF, and in each case, the result was identical (hyperlinks not active). It therefore seems that the problem occurs consistently during the 'export as PDF' process under MacOSX.

I have attached the subject PDF.
Comment 6 sdc.blanco 2023-02-28 00:44:05 UTC
Changing OS, based on comment 2, comment 3, and comment 5.

Using Windows, I can export the test document to PDF and both hyperlinks (mailto: and external URL) work as expected (in Adobe Reader).

Version: 7.2.7.2 (x64) / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL
Comment 7 Stéphane Guillou (stragu) 2024-03-25 04:00:07 UTC
*** Bug 160145 has been marked as a duplicate of this bug. ***