If you put hyperlinks in a google document, export those to docx, and then convert the docx document to PDF with libreoffice, then the hyperlinks can no longer be clicked from the PDF. If you open the docx file, they *can* be clicked.
Steps to Reproduce:
1. Create a google document with a hyperlink (example: https://docs.google.com/document/d/1nWxp413Jb3q7B7GtwUZrAQw1GmzTTZ2hkNewxk8eqEQ/edit?usp=sharing)
2. Download that document as a docx file
3. use soffice --convert-to pdf to convert the file to pdf
The generated PDF's links cannot be clicked
The generated PDF's links can be clicked
User Profile Reset: No
The generated PDF's links should be clickable.
Created attachment 179525 [details]
sample test document
REPRODUCIBLE with reporter's sample document Installation of Version: 18.104.22.168 (x64) Build ID a69ca51ded25f3eefd52d7bf9a5fad8c90b87951
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win | Locale: de-DE (de_DE); UI: de-DE | Calc: threaded | ElementaryTheme | My normal User Profile:
0. Download document from link as .docx
1. Open in LibO
2. Menu ˋFile → Export as → PDF → 600 EPI, jpeg-compression → [ok]ˊ
3. Open exported PDF in AR, click on "CBC"
» Expected: Linked page opens in Browser (as it does in .docx)
Actual: Nothing, Mousepointer over string even does not change to
a) After having saved as .odt in (0) link in (3) will work.
b) Still works in PDF export after having .odt form (a) as .docx
c) having closed .docx from (b) and reopened, then again exported to .pdf,
"CBC" hyperlink will no longer work in PDF
(what ever that might mean)
d) No obvious DUPs found with query <https://bugs.documentfoundation.org/buglist.cgi?cmdtype=dorem&remaction=run&namedcmd=DUPs148567&sharer_id=19321>
d) I haven't a clue what "soffice --convert-to pdf" might be
e) currently WIN is only known OS, although I am pretty sure that the problem
affects all OS
Regarding the convert-to pdf step, I was using a headless version of libreoffice to convert a file to pdf via the command line. Here's a blog post that talks about that:
(In reply to joseph.wong from comment #0)
> Actual Results:
> The generated PDF's links cannot be clicked
It depends on PDF viewer.
In Linux, they cannot in almost all I tried (Evince, xpdf, Master PDF, Acro), except in WPS PDF.
In Windows, they cannot in Adobe or Master PDF, possible in old Xchange-viewer and new Xchange-editor.
But reports is probably because previously up to 6.3 same program like Evince or Acrobat could open link.
I bibisected this but I'm not convinced this is a bug to resolve.
author Tünde Tóth <email@example.com> 2019-10-08
committer László Németh <firstname.lastname@example.org> 2019-10-12
commit 576611895e51186d38ddefa10ed8d66075d9de37 (patch)
tdf#127741 DOCX import: format hyperlink with Default character style
according to correct hyperlink handling, avoiding various editing
and layout problems; "sticky" and not easily removable character style
around the hyperlink and multiple blue hyperlink colors.
Set also Visited/Unvisited link character styles when the style of
the hyperlink is not the requested "Internet Link".
Reproduced in master build from today, using link and steps in Description, export with default PDF settings, opened in GNOME Document Viewer 3.36.10, Firefox 107.0, Okular 1.9.3.
In Chromium 107.0.5304.121, only the first Google link works, the CBC one doesn't.
Version: 22.214.171.124.alpha1+ (X86_64) / LibreOffice Community
Build ID: 1fd42472e2b1a2169d56e62ef11aa7ee1f7815e7
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Tünde, what do you think?