How do I export a LibreOffice document as a PDF with working, external hyperlinks?

I'm trying to export a LibreOffice document to PDF and have my hyperlinks open in a browser, but no matter what I do it seems as though they try to open them locally (i.e in my file system). I don't want to send this out to people and have it not take them to the websites I intend it to link to.

The sort of link I have is just http://www.firebox.com and I can ctrl-click them to open in the browser when it's jsut a .doc. Once I've exported them to pdfs clicking on them opens a little window that says 'Transfering' and then it opens up gedit with a blank file and a file named .

Currently I've got

  • LibreOffice 3.5.4.2
  • Okular 0.14.3
  • Ubuntu 12.04 LTS
  • Chrome & Firefox (latest versions, Chrome is default)

Is it my PDF viewer, or the options I'm selecting in LibreOffice?


Solution 1:

When I choose "Export as PDF" from the File menu I get a window of PDF Options with the "General" tab selected by default. I will assume for the sake of this answer that this is the same for you as well. If you look toward the right-hand end of the tab bar in that PDF Options window (second to last option just to the left of "Security") there should be a tab labeled "Links".

PDF Options Window

It strikes me that some of these options are likely to be helpful. I found the option which I have selected "Open with PDF reader application" useful for linking to other PDF documents on my filesystem, but I suspect the option which you are wanting is the one just below that "Open with Internet browser". When I test this with my own system (Linux Mint Debian Edition with LibreOffice) it works as expected, opening the clicked link in Firefox (my default web browser).

Also useful to be aware of is that if you have the "Selection" tool selected in the Okular toolbar then links are NOT clickable, as the assumption here appears to be that you are intending to select text for copy/paste operations. To ensure that your links are actively clickable be sure that you are in "Browse" mode (just to the left of the "Zoom" button on a standard Okular default toolbar).

I hope this works for you as described. :)