Bug 330604 - Okular does not follow hyperlink to external document
Summary: Okular does not follow hyperlink to external document
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.18.1
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-31 09:56 UTC by Ferry
Modified: 2014-05-08 11:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Test document with 3 different type of links (26.87 KB, application/pdf)
2014-02-27 08:53 UTC, Ferry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ferry 2014-01-31 09:56:21 UTC
When Libreoffice creates a PDF with hyperlinks Okular displays the hyperlink us such (underlined blue text), but you cannot click on the link to follow it.

Acroread does allow following the link (and the mouse pointer changes to the finger when you hover above the link).

Inside the pdf the hyperlink is encodes as:

<</Type/Action/S/GoToR/F(../../../../filename.pdf)>>

Reproducible: Always

Steps to Reproduce:
1. create a pdf from LibO with hyperlinks
2. try to click on the link from Okular
3.
Actual Results:  
Nothing happens

Expected Results:  
when hovering above the link, the moise pointer changes to indicate it is a link,
when clicking, the link is followed, preferable by opening the link in another window
Comment 1 Yuri Chornoivan 2014-01-31 10:38:46 UTC
Works fine here (LO 4.0.5, Okular 0.18.60).

Can you try to switch Okular to "Browse" mode using the top toolbar of Okular before clicking?

Thanks in advance for your answer.
Comment 2 Christoph Feck 2014-02-26 00:52:33 UTC
If you can provide the information requested in comment #1, please add it.
Comment 3 Ferry 2014-02-27 08:53:01 UTC
Yes, browse mode was already on.

I added an attachment with 3 link. 2 point to a file (one is local file, other on web server), the 3rd points to a web page. The 2 file links don't work,

BTW it appears that now acrobat changes the mouse pointer but refuses to follow the link to the file links as well.
Comment 4 Ferry 2014-02-27 08:53:52 UTC
Created attachment 85342 [details]
Test document with 3 different type of links
Comment 5 Yuri Chornoivan 2014-02-27 16:54:09 UTC
Looks like some problems with GoToR/F key handling in poppler (all poppler-based viewers have same problem).
Comment 6 Albert Astals Cid 2014-02-27 22:56:54 UTC
Back to unconfirmed, someone needs to investigate if the file is indeed valid and were to bug really lies (seems Yuri did part of it already)
Comment 7 Albert Astals Cid 2014-05-08 11:13:54 UTC
It is indeed a bug in the PDF, Libreoffice is generating a non conforming file to the spec, the link is defined as

<</Type/Action/S/GoToR/F(testdoc_with_link.pdf)>>

And the ISO PDF spec mentions that in a GoToR action both the /F and /D keys are required. And as you can see there is no /D key in that file, so the link is broken. 

Please go to the Libreoffice people and report a bug to them.