This forum has been archived. All content is frozen. Please use KDE Discuss instead.
Please use bugs.kde.org for bug reports or feature requests. Development related questions should be directed to the okular-devel mailing list.

Opening hyperlinks from Okular

Tags: None
(comma "," separated)
User avatar
doktor5000
Registered Member
Posts
28
Karma
0
OS

Opening hyperlinks from Okular

Mon Jan 14, 2013 8:54 pm
Hi there,

just a simple question: Can it be that it's not possible to open hyperlinks directly from within Okular,
or is the problem maybe that this has been left out by distro packaging or due to possible security issues etc.?

Or is the problem only that the links have to be embedded as links, and not only as text?
(Currently looking at LinuxUser Community Edition, and the links are not clickable, neither in browse mode,
zoom mode nor selection mode)

The only similar report about this i've found is https://bugs.kde.org/show_bug.cgi?id=281027
which would seem rather sad if that is true, as that is basic functionality IMHO ...
Hence i'm asking here, for clarification.

Actually this questions bugs me since quite some time, just not gotten around to ask it ;)

PS: FWIW, this is with okular 0.14.3 under KDE 4.8.5, but has been the case for quite some time.
User avatar
google01103
Manager
Posts
6668
Karma
25
embedded hyperlinks work but text links don't

you should vote on bugs.kde.org for this functionality


OpenSuse Leap 42.1 x64, Plasma 5.x

john_hudson
Registered Member
Posts
549
Karma
2
OS

Re: Opening hyperlinks from Okular

Tue Jan 15, 2013 9:54 pm
I have yet to come across an active link of any kind in a PDF that Okular (or KPDF) will not deal with appropriately; however, a lot of PDF creators don't create active links and Okular can display other formats where linking is not as straightforward as in a PDF.

I'm not quite sure that is meant by text links; Okular respects hyperlinks to other text in a PDF. Have a look at either of the PDFs about HTML and CSS at http://bradlug.co.uk/?p=809 which are packed full of all sorts of links.


John Hudson, proud to be a member of KDE forums since 2008-Oct.
asala
Registered Member
Posts
1
Karma
0

Re: Opening hyperlinks from Okular

Fri Feb 28, 2014 6:13 pm
I opened the PDFs and the hyperlinks did not work... How was it???
Solved: select the "navigation tool" (a mouse in the toolbar if configured), and not the "text selection tool".
Then Okular does follow the links. Otherwise, it does nothing.
Of course, maybe this is a question, perhaps of usability/UI. I would expect the hyperlink to be followed on "click" and not to be followed on "click and hold", but, it's not a bug, it seems.
mcaceres
Registered Member
Posts
100
Karma
0

Re: Opening hyperlinks from Okular

Tue Mar 04, 2014 9:09 pm
Currently the functionality is to highlight a piece of text that could be a valid link and then the right-click menu will give the option to open it in a browser (I'm in Okular 0.18.2). Apparently that's what came out of the bug you link to. But that is still a bit cumbersome since you need to switch to text selection, highlight the link, and then right click.

It would be nicer if Okular automatically recognized a piece of text as a possible link (via right-click menu or direct left click from "Browse"). Maybe ask for it in bugs.kde.org?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Opening hyperlinks from Okular

Wed Mar 05, 2014 10:40 am
With the PDF files i've tried, if the links are already setup within the PDF file itself, then they should work automatically and be clickable straight away in Browse mode. Can you post a link to a file which has links within it which Okular doesn't handle normally?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mcaceres
Registered Member
Posts
100
Karma
0

Re: Opening hyperlinks from Okular

Fri Mar 07, 2014 2:07 am
If the link has already been set up then Okular handles it fine. If the link is not a hyperlink, but just plain text that could be a link, then it is not recognized. This is not a bug, just functionality I wish was there. If you want an example, you can run pdflatex on

Code: Select all
\documentclass{article}
\begin{document}
http://www.google.com
\end{document}


If you drag and drop the file into Google Chrome, for instance, that piece of text will be clickable. But that hyperlink has not been set up, so Okular won't recognize it as such. That's all I meant (and I think it's the same point the OP raises).
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Opening hyperlinks from Okular

Fri Mar 07, 2014 9:36 am
You'll need to file a feature request in regards to automatic link detection i'm afraid - as that hasn't been addressed yet. It is quite likely this will need to be implemented in Poppler rather than Okular though however.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
john_hudson
Registered Member
Posts
549
Karma
2
OS

Re: Opening hyperlinks from Okular

Fri Mar 14, 2014 9:30 pm
A lot of PDF creators either do not create hyperlinks or have a 'print' mode which suppresses hyperlinks because hyperlinks interfere with offset litho printing. So you may see links in a PDF which have been accidentally or deliberately suppressed. A fairly reliable way of finding out if a PDF has had hyperlinks suppressed is to look for a contents pane to the left; if you can only see thumbnails, then hyperlinks have normally been suppressed. Occasionally, there will be no contents pane because the author hasn't used a heading style - in which case you may still find active hyperlinks elsewhere in the PDF.

As someone who regularly produces PDFs with hyperlinks, I can confirm that Okular has reliably detected these in Browse mode for several years; even if there is no colour change to indicate a hyperlink, the cursor will change as it passes over a hyperlink. I normally set important hyperlinks in a different colour.


John Hudson, proud to be a member of KDE forums since 2008-Oct.
mgomez
Registered Member
Posts
1
Karma
0

Re: Opening hyperlinks from Okular

Sat Nov 22, 2014 5:00 am
Hello. I am new to using Okular, and plan to use it for annotating and viewing PDF and EPUB files. I have not been able to figure out using links to other portions of the same document in EPUB files. I just installed Okular, so if I am doing something wrong please forgive me.

Example: the table of contents. Links appear highlit but otherwise appear as text. I know they work in the EPUB reader on my phone, but am not sure if this is connected to the bug report mentioned earlier.

If I posted this in the wrong area or should have created another thread, I am sorry.

If necessary I can point you to or send/attach one of the EPUBs here.

Thanks for your help.
mcaceres
Registered Member
Posts
100
Karma
0

Re: Opening hyperlinks from Okular

Tue Nov 25, 2014 2:42 pm
mgomez wrote:Hello. I am new to using Okular, and plan to use it for annotating and viewing PDF and EPUB files. I have not been able to figure out using links to other portions of the same document in EPUB files. I just installed Okular, so if I am doing something wrong please forgive me.

Example: the table of contents. Links appear highlit but otherwise appear as text. I know they work in the EPUB reader on my phone, but am not sure if this is connected to the bug report mentioned earlier.

If I posted this in the wrong area or should have created another thread, I am sorry.

If necessary I can point you to or send/attach one of the EPUBs here.

Thanks for your help.


I just downloaded a random .epub file online and the links are working for me. Is it the same for every .epub file you have?

Also, you might want to look at something like "Calibre" for .epub files. For me their ebook viewer displayed the files rather nicely but in Okular the epub files didn't look very good at all. Anyway, I don't think this is the same bug. The bug was about a more general issue with hyperlinks. Currently, if the hyperlink has been set up, then Okular should open it so it should be working for .epub files (at least for me it works in PDFs and EPUB files that I have tried).
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Opening hyperlinks from Okular

Tue Nov 25, 2014 3:14 pm
as pointed out earlier in the thread to be able to open a hyperlink in Okular you need to be in browser too mode: Tools -> Browser Tool


OpenSuse Leap 42.1 x64, Plasma 5.x

msotaminga
Registered Member
Posts
1
Karma
0

Re: Opening hyperlinks from Okular

Tue Jan 16, 2018 2:36 am
Thanks I not see this..!!1 :D :D :D :D

asala wrote:I opened the PDFs and the hyperlinks did not work... How was it???
Solved: select the "navigation tool" (a mouse in the toolbar if configured), and not the "text selection tool".
Then Okular does follow the links. Otherwise, it does nothing.
Of course, maybe this is a question, perhaps of usability/UI. I would expect the hyperlink to be followed on "click" and not to be followed on "click and hold", but, it's not a bug, it seems.
Van
Registered Member
Posts
5
Karma
0

Re: Opening hyperlinks from Okular

Tue Aug 25, 2020 11:18 pm
I have no problem following pdf hyperlinks in okular. But frequently, I'd like to return from whence I came.

In a web browser, there's a "back" arrow. In xdvi, "B" does it.

Is there a way to "go back" in okular? "go => back in the document" doesn't work. It stays in the same document.

"File => Open Recent" sometimes works, but I need to select the "recent" file instead of it going back automatically. It sometimes takes me back to a different place in the document from whence I came.

When viewing dvi in okular, it tries to load xdvi to follow a dvi hyperlink. But viewing dvi in okular works fine, so why try to load xdvi?


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell