Bug 103562 - Object's internal hyperlinks / interactions to slides are not functional when exporting presentation to PDF (in most cases) (comment 15)
Summary: Object's internal hyperlinks / interactions to slides are not functional when...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:odp, filter:pdf
: 116415 (view as bug list)
Depends on: 100893 132230
Blocks: PDF-Export Hyperlink
  Show dependency treegraph
 
Reported: 2016-10-28 20:55 UTC by Bastián Díaz
Modified: 2024-03-15 02:26 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Test files (223.70 KB, application/zip)
2016-10-28 20:57 UTC, Bastián Díaz
Details
New es (85.57 KB, application/zip)
2019-03-20 21:36 UTC, haevalencia
Details
odp 6.3.5.2 and export pdf files (13.66 KB, application/vnd.oasis.opendocument.presentation)
2020-04-27 12:20 UTC, Patrick Testaniere
Details
The pdf export file (25.44 KB, application/pdf)
2020-04-27 12:22 UTC, Patrick Testaniere
Details
sample ODP for update steps in comment 16 (11.39 KB, application/vnd.oasis.opendocument.presentation)
2024-03-15 02:14 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bastián Díaz 2016-10-28 20:55:20 UTC
Description:
Only text hyperlinks persist when you export a presentation to PDF.
(Hyperlinks to target the same document)

Steps to Reproduce:
1. Create a Open Document presentation with 2 slides
2. In the second slide insert different types of objects in duplicate to test two different methods interaccción. (Text, Shape, Gallery Object and Image)
3. To first group insert a Hyperlink to the first slide: Insert|Hyperlink, Document, target: Slide 1
4. To second group insert a Interaction to the fist slide
5. Save and export to PDF

Actual Results:  
a.Insert hyperlink method
b.Insert Interaction method
----------------------------------------
|     | text | shape | gallery | image |
----------------------------------------
| pdf |   ✓  |   ✓*  |    ✓*   |   ✓*  |
|--------------------------------------|
| pdf |   x  |   x   |    x    |   x   |
----------------------------------------
* Hyperlinks appear available but when selected indicates "no such file or directory"

Expected Results:
All hyperlinks work when exporting the presentation to PDF


Reproducible: Always

User Profile Reset: No

Additional Info:
OS: Fedora 24 64 bit, budgie desktop
LO: Version: 5.2.2.2
Build ID: 8f96e87c890bf8fa77463cd4b640a2312823f3ad
CPU Threads: 2; OS Version: Linux 4.7; UI Render: default; 
Locale: es-CL (es_CL.utf8); Calc: group
Document viewer: Evince 3.20.1


User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0
Comment 1 Bastián Díaz 2016-10-28 20:57:56 UTC
Created attachment 128331 [details]
Test files
Comment 2 Buovjaga 2016-11-15 12:29:31 UTC
Repro with document. Okular used to test.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.0.0.alpha1+
Build ID: 553cfda502a1516673233e409f91372766da6c4d
CPU Threads: 8; OS Version: Linux 4.8; UI Render: default; VCL: kde4; Layout Engine: new; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on November 11th 2016
Comment 3 Julien Nabet 2018-03-15 09:18:47 UTC
*** Bug 116415 has been marked as a duplicate of this bug. ***
Comment 4 Telesto 2018-03-15 15:49:25 UTC Comment hidden (off-topic)
Comment 5 QA Administrators 2019-03-16 03:56:15 UTC Comment hidden (obsolete)
Comment 6 haevalencia 2019-03-20 21:31:59 UTC Comment hidden (off-topic)
Comment 7 haevalencia 2019-03-20 21:36:19 UTC
Created attachment 150133 [details]
New es
Comment 8 Patrick Testaniere 2020-04-27 12:20:56 UTC
Created attachment 159992 [details]
odp 6.3.5.2 and export pdf files
Comment 9 Patrick Testaniere 2020-04-27 12:22:51 UTC
Created attachment 159993 [details]
The pdf export file
Comment 10 Patrick Testaniere 2020-04-27 12:40:29 UTC
I do a test with 6.3.5.2 exporting an odp in pdf. See files in comment #8 and #9.

The result are :
-interaction like "Goto first, prev, next and last" are active in the pdf, so it work.

-interaction like "Goto page or object, exit presentation" are inactive, so it don't work.

-I put OFF "transition by clicking on background" in odp but it's ON in the pdf.

Patrick (from France).
Comment 11 giovanni.vetere 2022-01-14 12:12:10 UTC Comment hidden (no-value)
Comment 12 Buovjaga 2022-01-14 12:21:33 UTC Comment hidden (no-value)
Comment 13 QA Administrators 2024-01-15 03:11:53 UTC Comment hidden (obsolete)
Comment 14 Stéphane Guillou (stragu) 2024-03-08 06:35:41 UTC Comment hidden (obsolete)
Comment 15 Stéphane Guillou (stragu) 2024-03-15 02:05:30 UTC
Looking more into it to try and clarify things, I hid a few comments to stay on the original topic:

**objects with internal hyperlinks or interactions in Impress in some cases won't create a functional hyperlink in the exported PDF**

Interactions are specific to Impress, so let's ignore Draw for this report.
Let's stick to the test case in comment 0, and keep Writer (comment 6) or text links (comment 4) issues for other reports, if still needed.

A few things to note:
- Comment 0 steps created interactions "To page or object > Slide 1".
- Hyperlinking (Insert > Hyperlink) an object to a target in document works but saving and reloading converts it to an interaction (Format > Interaction). That's since OOo 3.3 times.
- Interactions to First and Last slide work in PDF (if they are set as such directly in the Interaction dialog), but not the interactions to a specific slide name (which is what Hyperlinks get converted to)...
- ...but it works if the target's slide name is not the default name. Issue is also inherited.
- So interacting with objects might work inside the app, but when exported to PDF we either get wrong links that open the file browser (for hyperlinks, before save and reload) or inactive linking (for interaction, after save and reload).
- ...unless the slide name had been changed before creating the link/interaction!

So when testing, please keep in mind:
- exporting before or after saving and reloading the ODP yields different results (because hyperlink converts to interaction)
- results differ in different PDF readers. I recommend testing in Chromium for a cross-platform option that yields interesting results.

See next comment for updated steps.
Comment 16 Stéphane Guillou (stragu) 2024-03-15 02:14:20 UTC
Created attachment 193119 [details]
sample ODP for update steps in comment 16

---- New steps

1. Open attachment. It has no pre-existing links or interactions; "Slide 2" is original name, "my_slide_3" was renamed.
2. On the first slide, add hyperlinks to top shapes to Slide 2 and my_slide_3
3. Add interactions to Slide 2 and my_slide_3 to bottom shapes: right-click > Interaction > To page or object
4. Export to PDF, open with e.g. Evince / Okular / Chromium (not Firefox)

Results A:
* hyperlinks both wrongly open the file browser, trying to find a file that does not exist (Okular, Evince)
  * in Chromium, hyperlink to my_slide_3 works as expected (which is something that changed between OOo 3.3 and current LO master, could be interesting to bisect it)
* interaction to Slide 2 does not work
* interaction to renamed slide 3 works

5. Save and reload the file
6. Note that the top shapes' Hyperlinks have been converted to Interactions
7. Export to PDF

Results B, confirming the top row conversion to Interactions:
* Slide 2 column does not work
* my_slide_3 column works

Tested with OOo 3.3 and a recent trunk build:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c8b8a2c2cb34a1ae0b0aeee0564b39260258f184
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Comment 17 Stéphane Guillou (stragu) 2024-03-15 02:20:33 UTC
Now that we've got an overview of the issue here, let's mark more specific bug 100893 ("hyperlinks open the browser") and bug 132230 ("need to rename slide") as blockers.