OpenOffice.org 2.4 introduces support for relative links in PDF documents.
Say you want to create a web of interconnected PDFs and distribute them via a web site, a CD-ROM, or an office file storage network. Each PDF is linked to the other. The absolute links to each PDF may change, but relatively they are the same.
For example, you start out by publishing http://example.com/introduction.pdf which links to http://example.com/chapter1.pdf. Then, you move these PDFs to the directory http://example.com/book/ or S:\Book\. Relative links makes these tasks easier.In other cases, relative links makes certain tasks possible. For example, if you put the documents on a CD-ROM for distribution, you don't know what the absolute paths may be. The directory could be d:\Book\, e:\Book\, /mnt/cdrom/ or something else.
How to use
- Write some text in a document.
- Highlight the text where you want the link.
- Click Format > Character > Hyperlink.
- In the URL field, type the relative name of the document such as chapter1.pdf.
- Click OK to close the dialog.
- Click File > Export PDF.
- Click the Links tab.
- Check the box Export URLs relative to file system.
- Click the Export button.