Note: This blog has two related posts, on PDF in general and on Impress and links. Originally posted January 2006.
I'm going to make a bold statement. If you ever put any documents on the web, you might need only one application in your life: OpenOffice.org.
I'm not talking web design—I'm just saying, if you work for the city government and need to post long pages of forms for people to download, or if you need to publish reports that people can easily find their way around in, or if you're a technical writer and create user manuals with the usual thousands of links within the document and to other documents—you might be good to go with only OpenOffice.org.
What Makes Me Think OpenOffice.org Is Such a Great Publishing Tool?
This is because of three things.
1. In OpenOffice.org, you can create links. You can just type "Click here to go to the web page," select some text, and link it to any web site you want.
You can link any text or graphic to any heading, graphic, table, etc. within your document or within another OpenOffice.org document. (You can link to another PDF document, but not to another bookmark within a PDF document.)
You can automatically generate a linked table of contents, so that anyone clicking on an item in the TOC is taken directly to that heading in the document.
You can put links in headers and footers. Have a link that says "Back to top" that appears in your footer, and you've got great navigation.
2. You can make a PDF document from your OpenOffice.org document. From a Writer text document, Calc spreadsheet, Impress presentation, or Draw drawing, with OpenOffice.org. Just choose File > Export as PDF. Or even easier, just click the PDF icon on your Standard toolbar.
3. In OpenOffice.org 2.0, the links you make in OpenOffice.org transfer over to and work in the PDF.
These are all very important and useful. Put'em together and you have huge power.
What You Need to Do in Your OpenOffice.org Document
Take a look. Here's a document I made using only OpenOffice.org, created the linked TOC automatically and the links between sections manually using only OpenOffice.org, and generated the PDF using only OpenOffice.org. Here's what I did in the document--I didn't do a huge amount of cross-references but I did do enough to demonstrate the power, I hope.
A. There's a table of contents that I generated automatically, and made hotlinked to each section, automatically. Click on a link in the TOC and it goes.
To create a hotlinked table of contents, in your Writer document choose Insert > Indexes and Tables > Indexes and Tables. To make the hotlinks, click the Entries tab of the window, click to the left of the E and click Hyperlink, and click after the E and click Hyperlink again. Click All to put hyperlinks on all levels of the TOC. Click OK.
Click this image to see a larger version.
B. At the fine, innovative suggestion of Dave Richards of the City of Largo, I put a link in the footer that says “back to top.” This text is linked to the Table of Contents heading so that clicking that link in the footer takes you to the table of contents. You could also add footers that say and link to "back to whatever you want." You could add headers and link them back to the original Head1. You could add a manual link at the end of any major or minor section to go back to the beginning of that heading.
To turn on the footer, choose Format > Page, click the Footer tab, mark the Footer checkbox, click OK. Then click in the footer text box that appears and click OK.
Click this image to see a larger image if you want.
Type the text you want in the footer text box.
How the heck do you make the link now that you're in the footer or header? That's next. To link an item in a header, footer, or anything else, see the next point.
C. I added links at the beginning, and to any interesting web sites, throughout the document, using the Hyperlink icon on the Standard toolbar. Links such as "This section covers the following topics" with a bulleted list containing three links.
Click this image to see a larger image if you want.
Here's how to create a manual link to a web site, other point in the document, etc. Select the text that you want linked. Click the Hyperlink icon on the Standard (top) toolbar.
In the window that appears, think about what kind of link you want to make. To link to a web site, just click the Internet icon on the left, and type the URL. Click Apply.
To link within the document, click the Document icon on the left side. Then click the round stopsign type icon by the Target in Document field, and you get the navigator. In the navigator window, you can link to any heading, table, object, etc. in your document, or in any other document.
Click this image to see a bigger image if you want.
Note: You'll see that Headings, the TOC, and also other objects like tables and bookmarks show up. You can link to any of them.
- Headings are anything to which you have applied Heading1 paragraph style through Heading10 paragraph style. More specifically, it's whatever is set as the headings under Tools > Outline Numbering.
- You can click anywhere and insert a bookmark by choosing Insert > Bookmark and naming it. Then all those bookmarks automatically show up in the Navigator list and you can link to them.
Select the item to link to.
Click Apply.
Click Close.
Once you're back in the Hyperlink window, click Apply again. The same text, a little technical looking, will show up in the Text field at the bottom of the page. This is the text that will appear in the document.
If you want something different to appear in your document, just retype it and click Apply
Then click Close. You'll see the text in the document, linked to the item you selected.
With those three attributes, you can make a document that's extremely useful.
Exporting to PDF
The final step, once you do all this in OpenOffice.org, is to export to PDF.
Choose File > Export to PDF. Name the file. In the PDF options window, specify a page range if you want, and make any changes to the graphics quality. (If you can, keep the JPG compression as high as possible.) Then click Export.
Here's the PDF Options window.Click it to see a larger version if you want. BE SURE TO SELECT THE "TAGGED PDF" OPTION to make the links convert to links in the PDF document.
Click Export, name the document, and you're done.
Take that PDF copy of your document and post it to your web site, email it to whoever needs it, or just do whatever needs to be done to distribute it to the folks who need it.
Think Links and Think PDF! It reduces repetitive work, gives you and your organization extra powers, and will make you look very cool when you introduce this slick, labor-saving approach to distributing documents.
How do I create a PDF using OO from commandline???
I want commandline options for PDF creation in OO.
Posted by: Kaustav | March 28, 2006 at 01:41 AM
Hi Kaustav,
I believe you need a macro to do this. See this topic on converting word to PDF which I think should work.
http://www.oooforum.org/forum/viewtopic.phtml?t=3772
http://www.oooforum.org/forum/viewtopic.phtml?t=3525
http://www.oooforum.org/forum/viewtopic.phtml?t=12757
You can also batch convert files to PDF using the Web Wizard. See http://openoffice.blogs.com/openoffice/2006/02/our_pdf_prince_.html
Solveig
Posted by: Solveig | March 28, 2006 at 02:55 AM
The pdf conversion is absolutely great. Is there any way to create fillable pdf forms using Openoffice.
Posted by: Parminder | July 06, 2006 at 01:03 PM
Hi Solveig,
I am doing a feasability study now to migrate from MS Office to OpenOffice or StarOffice.
I also saw that the PDF creation with links is a big plus and may even eliminate the need for Adobe Acrobat, which could save us a lot of money as well.
Just a small question: Is there any way I can have the PDF I just generated open up in Acrobat Reader when it's done to see the result?
Thanks in advance for your reply.
Regards and keep up the great work!
Cheski,
Switzerland
Posted by: Cheski | July 07, 2006 at 02:46 AM
Hi Parminder,
I don't think that there's a fillable form feature in the OpenOffice PDF features. Sounds like a good opportunity for an ambitious open source programmer, though. ;>
Solveig
Posted by: Solveig | July 09, 2006 at 08:34 AM
Hi Cheski,
>> Just a small question: Is there any way I can have the PDF I just generated open up in Acrobat Reader when it's done to see the result?
I don't know of one; it sounds like perhaps a small shell script of some sort, in the operating system, would do that if you can have your PDFs going to a few specified directories. Just a guess, though.
Solveig
Posted by: Solveig | July 09, 2006 at 08:36 AM
A set of conversion tools to convert PDF documents into other popular formats.
http://www.sharewarecheap.com/business-finance-word-processing/pdf-export-kit5160-35.htm
Posted by: maggie | August 22, 2006 at 12:09 AM
How do I remove the grey shading behind the hyperlink in a Calc Spreadsheet?
Posted by: Rodney | January 12, 2007 at 04:59 AM
Hi Rodney,
Gray shading won't print, so you don't need to remove it. However, if you choose View > Field Shading, that should hide it.
To remove the hyperlinked attribute, you can select the text and choose Format > Default.
Solveig
Posted by: Solveig Haugland | January 12, 2007 at 09:58 AM
Hi, I appreciate the help, but there is no Field Shading option in a Calc Spreadsheet.
So is there any other way to remove the gray shading or possible change the color to make it invisible in a Calc Spreadsheet.
Posted by: Rodney | January 13, 2007 at 01:21 AM
Hi Rodney,
I've just been fiddling with Calc and I can't even get URLs to show up gray, period. Not sure what's up. Try going under Tools > AutoCorrect, Options tab, and unmark the URL Recognition checkmark.
Then try the Format > Default Formatting, and try reopening OpenOffice.org as well.
Solveig
Posted by: Solveig Haugland | January 14, 2007 at 08:24 AM
How can I make a linked TOC with OO 2.1? I read your post but I can´t find E# and LS buttons in the new OO version?
Best regards
Posted by: Roberto | March 06, 2007 at 04:52 PM
Hi Roberto,
Insert > Indexes and Tables > Indexes and Tables, Entries tab. Click to the left of the first entry in the Structure area and click Hyperlink, then again to the right of what you want hyperlinked and click Hyperlink again.
Posted by: Solveig Haugland | March 06, 2007 at 05:42 PM
I am trying to create the Hiperlinks as explained above in the table of contents with OO 2.2, but it does not appear linked. Do I need to convert into PDF to see the links, or anything has changed with version 2.2.Thanks
Posted by: Hugo | April 23, 2007 at 02:27 AM
I am trying to create the Hiperlinks as explained above in the table of contents with OO 2.2, but it does not appear linked. Do I need to convert into PDF to see the links, or anything has changed with version 2.2.Thanks
Posted by: Hugo | April 23, 2007 at 02:27 AM
Hi Hugo,
In the TOC setup window, in the Entries tab, be sure to select the default character style for the hyperlinks in the Character Style list. It's Hyperlink or something very close. Also be sure to click hyperlink twice, once before some text to get the LS indicator and once to get the LE indicator after the text.
The links should function correctly in the doc and the PDF.
Solveig
Posted by: Solveig | April 23, 2007 at 04:05 AM
Hi again Solveig,
I have tried the default character style, which I found as "default" and it does not work either. I have both hiperlinks, before and after the entry set. I include the entries by selecting text and doing edit->Index Entry adn adding to the table of contents. Is that correct? Any idea of my mistake?Thanks !
Posted by: Hugo | April 23, 2007 at 08:14 AM
I have hyperlinked a sound file (mp3) in on OOo document and would like the link to be preserved in the conversion to pdf. As far as I can see, the conversion only preserves links to other documents. I really need the links to be relative as well (so that I can put the document and supporting files on a CD, etc.). Is this possible?
Thanks
Posted by: Bruce Button | July 27, 2007 at 07:33 AM
Hi Bruce,
I don't think PDF would work, if it's not working when you export and select the Tagged PDF checkbox when you export. You might try exporting to Macromedia Flash or to HTML instead.
Solveig
Posted by: Solveig | July 27, 2007 at 08:25 AM
Hi Solveig,
Thanks for your reply. I am able to accomplish the required results exporting from MS Word to Adobe using the Adobe pdf converter, but it would be nice if I could do this in OpenOffice as well. Apart from the OpenOffice exporter, Adobe only offers a printer driver that works in OpenOffice and this doesn't preserve the links properly.
Thanks again
Bruce
Posted by: Bruce Button | July 27, 2007 at 11:48 AM
I'm trying to add hyperlinks to a table of contents generated by OO from a newsletter produced originally in Word. The table comes up fine, but no hyperlinks. Even if I use the original Word TOC, which had working hyperlinks, I get nada. I can create a document from scratch, generate a TOC, and the links work. I even tried changing all the imported styles in the Word document to native OO Heading styles. Zilch. This is very frustrating because I was excited about being able to export working internal hyperlinks to a PDF for distribution. ANy thoughts? Thanks.
Posted by: Rob Fleming | October 10, 2007 at 10:02 AM
OK, the advice to a previous query which I hadn't seen fixed the hyperlink problem when I made sure that the E box was formatted for "Internet Link". Now my twin problem is that, when I reformat the TOC to be two columns, I lose all the hyperlinks. The TOC generator does not convert manual returns (in the topic headings) to spaces, so I have to change them. I don't find any way to do a Global Search and Replace on special characters (like manual return or even paragraph) in OO. Is there such or is it coming Real Soon Now in 2.4? Many thanks for the column. I got your book, but it doesn't answer everything.
Posted by: Rob Fleming | October 10, 2007 at 11:34 AM
Oops, not as successful as I thought. The TOC entries LOOK like hyperlinks (blue, underlined) but don't link. I tried starting an OO Writer document from scratch and could make the TOC and Hyperlinks work only for Heading 1 items (I need three layers of headings). I can manually, individually, install bookmarks in each Heading 3 item and hyperlinks from the TOC entry, but that's a lot of work the computer should be able to do. Arghhhh!
Posted by: Rob Fleming | October 10, 2007 at 04:24 PM
Hi Rob,
You've pointed out something I need to add that is no longer a default. When you choose File > Export to PDF, thenin the big options window, first tab, choose Tagged PDF. This means, make the links into links in the PDF doc. not very obviously labeled, I know. ;>
Re the searching and replacing for carriage returns, it's in this blog. Click the Writer category at the right side of the blog, wait an eternity for it to load, then search for "Carriage return" on the page.
I could have sworn I put it in the book, I'll check. Definitely something that should be in the book if it's not.
Solveig
Posted by: Solveig | October 11, 2007 at 06:54 AM
So ... will OO work to take a Microsoft Word file, hyperlink within the text (table of contents, etc.) and allow affiliate links to other websites (like Amazon) and then upload everything into Adobe Acrobat Distiller if I already have Adobe Acrobat?
If so, are there things I need to keep in mind? Will people be able to open the links in Adobe Reader? I'm not that technical, but I'd like to get my ebook out soon, and it would make it a lot more user friendly if people could link directly to recommended products and websites.
Thanks for your input!
Laura
Posted by: Laura | December 02, 2007 at 10:43 PM
Hi Laura,
If you have Distiller and Acrobat you have more powerful tools than there are in OOo.
If in OOO you choose File > Export as PDF, and select Tagged PDF in the first window/tab (it's on by default), any links in the document will be hotlinked in the resulting PDF.
Solveig
Posted by: Solveig | December 03, 2007 at 07:14 AM
I like the idea of putting the "back to top" hyperlink in the footer. However, the footer hyperlink won't export to pdf (the other hyperlinks work fine, just not the one in the footer). Any ideas?
Posted by: Jared | April 26, 2008 at 02:01 PM
Hi,
To make the "Back to Top" link, try cross-references.
http://openoffice.blogs.com/openoffice/2007/11/video-tutorial.html
Also be sure that when you choose File > Export at PDF, that the Tagged PDF checkbox is marked.
Solveig
Posted by: Solveig | April 28, 2008 at 03:14 PM
great info here...by any chance do you know of a way to translate the language of a PDF and then re-export into PDF format? thanks for the great tips already...
Posted by: justin | May 01, 2008 at 11:03 AM
Hi, and thanks for the information about OpenOffice.org. I use it a lot for all kinds of projects like the one you describe, but I am having a peculiar problem that I hope you can shed some light on. When I create a document (that I "save as" to Microsoft Word format) that has a link to another document, it seems to work all O.K. However when I close the file, then re-open it, the link changes from the second document to a web address (http://document-name.com). No matter what I do, it always works after I save the file, but when I close it and open again, there's that problem of reassigning the hyperlink to a web address from the original document location. Any ideas? Thanks a bunch.
Randy
Posted by: Randy | June 17, 2008 at 03:12 AM
Hi Randy,
That sounds frustrating! And I'm afraid I can't reproduce it. When you create the link, do you click the Hyperlink button, then make sure that you've specified Document type, in the section at the left where the icons are? That's the only thing I can think of; that the link is being set up as an Internet link.
Solveig
Posted by: Solveig | June 17, 2008 at 06:06 AM
hello
I found a couple of good answers on this website in the past so many thanks for that. Now I have a question regarding hyperlinks. Is there a way to show the full url when printing. I am creating a reference doc that will be printed as a handout, so I need to show the full url, but I would like to keep the online version tidy, with only the tags. Is this possible?
kind regards,
Posted by: M.Smit | July 14, 2008 at 04:32 AM
Hi M,
Not as you describe, unfortunately. I think you would need to insert the URL as a Note (insert > note), or as a footnote, then click print, click options, and choose how to print your notes.
Posted by: Solveig | July 14, 2008 at 06:46 AM
There is another way how to export the PDF from OpenOffice.org.
Simply use FlexiDoc web user interface.
Posted by: FlexiDoc Server | August 21, 2008 at 09:17 AM
how to navigate back to a hyper link after reaching its destimatiom ?
Posted by: Arunchandran S R | August 26, 2008 at 10:18 AM
Hi Arunchandran,
You'll just need to do it manually. One thing to do is to just put in the footer a link back to the top. Do a link to the title of your document. You can do this with a hyperlink or try cross-references.
http://openoffice.blogs.com/openoffice/2007/11/video-tutorial.html
Posted by: Solveig | August 26, 2008 at 10:42 AM
TOC HYPERLINKS DOES NOT CONVERT TO PDF
I made table of contents hyperlinks (LS on the leftmost, LE on the rightmost), which work correctly on writer. However, when converted to PDF (tagged PDF is checked), The links disappear. What am I doing wrong?
Posted by: Gil Savir | September 01, 2008 at 01:14 AM
Hi Gil,
I'm afraid I'm not sure. Hover your mouse over the linked TOC in PDF, the link might be there and just not visibly obvious. Also test the conversion by, in Writer, just choosing Insert > Hyperlink and inserting any hyperlink. See if that converts and the TOC doesn't, just to narrow it down.
Solveig
Posted by: Solveig | September 01, 2008 at 06:18 AM
Hi Solveig
All other links are converted correctly. Also the acrobat bookmarks, which are made from the links in the TOC are there. yet, (even if hoovering or clicking) the links in the TOC itself (the "printed" one) are not converted.
Posted by: Gil Savir | October 28, 2008 at 10:50 AM
Thanks for Sharing.
Posted by: actual test | April 14, 2009 at 10:23 AM
The hyperlinks I created in OpenOffice writer, and then exported to PDF, do operate properly. Instead of going to the proper destination, it opens the PDF in a new tab!
How to export hyperlinks to PDF. I tried the tagged PDF option too. It doesn't work.
Posted by: Nutan | May 11, 2009 at 08:56 AM
This is just AWESOME information and it has saved my company thousands of dollars!!! Thankyou!
Posted by: Andreas Rönnqvist | May 23, 2009 at 02:25 AM
Hi
We're using the OO Java utils to create PDFs from HTML templates. For some reason the single quote character(') is being converted into a collection of: a with an accent, Euro sign, TM sign
Any ideas why this happens?
Posted by: T Clarke | July 22, 2009 at 09:03 AM
Hi T Clarke,
I'm afraid I'm not much of a Unicode expert; do you have curly quotes on under Tools > AutoCorrect, Quotes? If so turn them off.
Solveig
Posted by: Solveig | August 03, 2009 at 04:19 PM
Thanks for you replay
-------------------------------------------
tuyen dung | viec lam | tim viec
Posted by: nhat truong | August 18, 2009 at 07:43 PM
thank you for sharing
------------------------------
nuoc hoa | nuoc hoa nam | nuoc hoa nu
Posted by: nuoc hoa | September 08, 2009 at 10:04 PM
How can I make a linked TOC with OO 2.1? I read your post but I can´t find E# and LS buttons in the new OO version?
Posted by: quang cao online | December 24, 2009 at 01:14 AM
I've created a pdf e-book from my open office. Very pleased with it. However, I suggest several websites in the book (which I can affiliate with). How can I insert the affiliate code securely into my PDF file?
Thank you
Posted by: Gabby | February 01, 2010 at 08:38 AM