Is there a way I can make a hyperlink of relative path to file?
I have a folder with my odt and a pdf file there. I want to make a relative link to the pdf file - to insert the link in odt.
How can this be done?
[Solved] Relative link to file?
[Solved] Relative link to file?
Last edited by Agilar on Wed Jun 20, 2012 12:03 pm, edited 1 time in total.
LibreOffice 4.1.2.3 on Kubuntu 14.04
Re: Relative link to file?
From
http://www.owlfish.com/software/PubTal/ ... ffice.html
http://www.owlfish.com/software/PubTal/ ... ffice.html
Links
To use a URL to link to another document on the same website (a relative link), the OpenOffice "Document" hyperlink option must be used, not the "Internet" option. This is because OpenOffice treats all links entered using the "Internet" panel of the Hyperlink dialog as being absolute addresses (fine for external links). To check that the correct type of link has been created, enable the Hyperlink Bar using "View -> Toolbars -> Hyperlink Bar". If the hyperlink you have entered begins with "file://" then it is a relative link, otherwise it is an absolute link.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.5 LTS
Re: Relative link to file?
So I have:
If I insert
in the "Document" field - the link works. If I do:
or
if doesn't.
Code: Select all
.
├── 124.pdf
└── 2.odt
Code: Select all
file://abspath
Code: Select all
124.pdf
Code: Select all
file://./123.pdf
LibreOffice 4.1.2.3 on Kubuntu 14.04
Re: Relative link to file?
Oh - I solved it!
Two things:
Two things:
- Options -> Load/Save -> General check the relative links
When making hyperlink - choose the Document not the Internet
LibreOffice 4.1.2.3 on Kubuntu 14.04