https://bugs.documentfoundation.org/show_bug.cgi?id=144488

Stéphane Guillou (stragu) <stephane.guil...@libreoffice.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
           See Also|                            |https://bugs.documentfounda
                   |                            |tion.org/show_bug.cgi?id=14
                   |                            |5676
     Ever confirmed|0                           |1
            Summary|Hyperlink to target in      |Master documents: Hyperlink
                   |external document doesn't   |from one subdocument to
                   |work in Master document     |another should be
                   |exported to ODT or PDF      |simplified to be internal
                   |                            |when exported to ODT or PDF
             Blocks|                            |107805

--- Comment #15 from Stéphane Guillou (stragu) 
<stephane.guil...@libreoffice.org> ---
Thank you Harald, I understand.
Please feel free to unsubscribe to the report.

---

I tested with my own files created from scratch:
- sub-document ODT 1 with two headings
- sub-document ODT 2 with two headings + a hyperlink to one of the headings in
sub-document 1

What I see:
* In subdoc 2, the target comes up as "1.Heading 1 of subdoc 1|outline" in the
hyperlink dialog.
* Clicking the hyperlink in the Master document opens subdoc 1 in a new window.
* PDF export:
   * link is "subdoc1.odt#1.Heading%201%20of%20subdoc%201%7Coutline"
   * link does not work in Evince / Firefox / Chromium, but it _does_ in
Okular, leading to opening subdoc 1 at the correct heading
   * using the option "convert to PDF targets" does not help as it converts the
link to "subdoc1.pdf#1.Heading%201%20of%20subdoc%201%7Coutline" (subdoc1.pdf
does not exist)
* ODT export:
   * link does work, opens subdoc 1 at the correct heading
* It is possible to insert into the master document a hyperlink to a heading of
a subdocument, but that has to be done in a text section of the master, after
having included the subdocuments.

My conclusion:
I agree with Harald that hyperlinks to parts of documents should be converted
on export to PDF so they can be used to move inside the PDF (instead of opening
the source subdocument). Or at least have an option of the kind "Simplify
document target links for included files" that would follow the logic "if the
link URI points to a file that is included as a subdocument, simplify it so it
is internal to the exported file".

Version: 7.6.5.2 (X86_64) / LibreOffice Community
Build ID: 38d5f62f85355c192ef5f1dd47c5c0c0c6d6598b
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

See also bug 145676.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=107805
[Bug 107805] [META] Writer master document issues
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to