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

--- Comment #5 from harald.brau...@t-online.de ---
Hello Dieter,

thank you very much for your comment 4.

Try 1:
==========

I have completed and tested your steps for reproduction a little bit:

1. Open a new document and write some words (including the word "document2").
2. Saving this 1st document under any name.
3. Open another new document and create the heading "Document2". Formatted with
heading1.
4. Save this 2nd document under any name.
5. Open the 1st document; mark the word "Document2"; Insert -> Hyperlink ->
Select document (2nd document) -> Select target (heading "Document2") -> O.K.
6. Export as PDF (in doing so, under the "PDF Options" on the "Links" tab, the
option "Convert document links to PDF targets" was NOT checked.
7. save the PDF file.
8. open PDF file and click on link.

Result: 
The link does not work! NO error message

If you move the mouse cursor over the hyperlink in the generated PDF file you
can see the following: "file://<path>/Document1.odf#Document2%7Coutline"
(<path> is the placeholder for my local directory path).


Try 2:
==========

Now I repeated step 5. and in step 6. under "PDF Options" on the "Links" tab I
checked the option "Convert document links to PDF targets".
Repeated steps 7. and 8.

Result:
The link does not work! 
The error message appears: "External link could not be opened/ Error fetching
information for file >><path>/Document2.pdf<<: file or directory not found"
(<path> is the placeholder for my local directory path). The link does not
work, that the 2nd document was not converted to a pdf file.

In the "content.xml" of the 1st document the following is stored to the
hyperlink: <text:a xlink:type="simple"
xlink:href="../Document2.odt#1.Document2%7Coutline"
text:style-name="Internet_20_link"
text:visited-style-name="Visited_20_Internet_20_Link">Document2</text:a>


Notes on the global document with its sub-documents:
=========================================================

Basically, MANY documents with their links are united into ONE document here
when exporting to a PDF file or to an .odt file.

Hyperlinks can be here:

Case 1:

(a) from the global document to one or more sub-documents,
(b) from a sub-document to one or more sub-documents

refer.

Case 2:

In addition, there may be hyperlinks here that point to external files that are
not part of the global document and its sub-documents.

In case 1, the hyperlinks must work within the target document when exported
and thus be converted to hyperlinks to internal targets of a file.

In case 2, the hyperlinks must be designed to open the original files
separately from the PDF or .odt file (if the link is available).

I hope I could help you with this.

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

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to