Summary: | Export an *.odt document towards a *.pdf file (source), containing at least one relative hyperlink \ URL pointing to another *.pdf file (target) | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | devEric69 <eric.moutie> |
Component: | Printing and PDF export | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | stephane.guillou |
Priority: | medium | ||
Version: | 6.0.7.3 release | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Windows (All) | ||
URL: | https://forum.openoffice.org/fr/forum/viewtopic.php?t=68683 | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Attachments: |
The dialog boxes for my test case
simple test kit |
Description
devEric69
2024-05-02 14:57:45 UTC
I've also tested this feature with OpenOffice 4.1.15: it didn't work either (no valid hyperlink in the generated pdf export). Created attachment 193941 [details]
The dialog boxes for my test case
A discussion thread (in french), about this anomaly: https://forum.openoffice.org/fr/forum/viewtopic.php?t=68683 . Thanks for the report. I tested these steps: 1. Open Writer 2. Tools > Options > Load/Save > General > both "Save URLs" options are checked (which are the default values) 3. Link some text using Insert > Hyperlink > Internet > Document > Path: ./target.pdf Result 1: the link does not work when used inside Writer. Message is: "./target.pdf" cannot be passed to an external application to open it (e.g., it might not be an absolute URL, or might denote no existing file). Similar issues: - https://superuser.com/questions/1675026/libreoffice-relative-link-to-another-docx-on-local-system-not-working - https://ask.libreoffice.org/t/hyperlink-failure-local-link-cannot-be-passed-to-an-external-application-to-open-it/67822 - bug 118594 The issue is that entering the path by hand won't work, but using the file picker button next to the field will work. It _will_ display an absolute path in the dialog, which looks wrong according to the settings we have in Options, but the path is actually saved in relative form in the file. You can confirm that by then exporting the PDF: 4. Export PDF to the same directory as the target 5. Open PDF and test the link: works 6. Move file together to a different directory, test again: works Essentially, the root issue is that the dialog displays an absolute path when we chose to store relative paths, leading to users trying alternative methods like entering the path by hand. So I am marking as duplicate of bug 128216. I hope that makes sense, and that using my steps above (using "Document" instead of "Internet" in the Hyperlink dialog), you can make it work! Tested with: Version: 24.2.3.2 (X86_64) / LibreOffice Community Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: CL threaded *** This bug has been marked as a duplicate of bug 128216 *** Created attachment 194284 [details]
simple test kit
ODT can be exported to PDF, and then files moved together, to test relative linking.
|