[Libreoffice-bugs] [Bug 144488] Writer: Globaldokument mit Teil-Dokumenten - Exportfunktionen passen Hyperlinks auf Fragmente in Teildokumenten nicht an

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Sep 30 10:12:40 UTC 2021


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

harald.braun.p at t-online.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|1                           |0
             Status|NEEDINFO                    |UNCONFIRMED

--- Comment #2 from harald.braun.p at t-online.de ---
Hello Dieter,

first to your question about the "fragment".

Here I refer you to the RFC 3986 for the structure of a URI, heading "3. Syntax
Components".

Since I was not able to upload the documents as attachment I sent them to your
mail address.
There you will find a zip file containing a simple global document with its
sub-documents, where in the sub-document "About this Guide" with the chapter
"About this Guide" simply hyperlinks to the sub-documents "Introduction" and
"Login to the Switch".

The content.xml of the global document contains the following references:

xlink:type="simple"
xlink:href="../About_this_Guide.odt#1.About%20This%20Guide%7Coutline"

xlink:type="simple" xlink:href="../Introduction.odt#1.Introduction%7Coutline"

xlink:type="simple"
xlink:href="../Login_to_the_Switch.odt#1.Login%20to%20the%20Switch%7Coutline"

When I export this from the global document to a PDF file the following links
are in the PDF file:

file:///home/haraldbraun/Dokumente/fehlersuche/-About_this_Guide.odt#1.About%20This%20Guide%7Coutline

file:///home/haraldbraun/Dokumente/fehlersuche/-Introduction.odt#1.Introduction%7Coutline

file:///home/haraldbraun/Dokumente/fehlersuche/-Login_to_the_Switch.odt#1.Login%20to%20the%20Switch%7Coutline


For me file:///home/haraldbraun/Dokumente/fehlersuche/ is the directory in
which 

a) the global document
b) the partial documents and
c) the exported PDF file.

Clicking on the hyperlink in the PDF file does not lead to the target.

If I now create an .odt file from the global document using the export
function, then unpack the .odt file and change the "content.xml" of this .odt
file so that the references look like this:

xlink:type="simple" xlink:href="#About%20This%20Guide%7Coutline"

xlink:type="simple" xlink:href="#Introduction%7Coutline"

xlink:type="simple" xlink:href="#Login%20to%20the%20Switch%7Coutline"

save the "content.xml" and then create an .odt file again from the archive
files (zipping) I have created the prerequisites for a working PDF file.

>From this .odt file I then export the PDF file again. And lo and behold, the
hyperlinks work just fine.

Many greetings
Harald

Translated with www.DeepL.com/Translator (free version)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210930/42e3e1fc/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list