[Libreoffice-bugs] [Bug 144488] HYPERLINKS: Hyperlink to target in external document doesn't work in exported PDF (steps in comment 4)
https://bugs.documentfoundation.org/show_bug.cgi?id=144488 Stéphane Guillou (stragu) changed: What|Removed |Added Status|NEW |NEEDINFO --- Comment #12 from Stéphane Guillou (stragu) --- (In reply to harald.braun.p from comment #11) > Evince: link does not work. > Foxit reader: link works. [...] > Foxit Reader: Link does not work. > muPDF: Link works. OK, so at least we can confirm that PDF links not working (as in comment 4) is not our issue but rather missing support in some PDF readers. (In reply to harald.braun.p from comment #11) > Note: But this is not my problem. See bug description. Let's have a look at this ODM to ODT issue then. I know you shared them with Dieter, but can you please attach your sample documents here so others can test? https://bugs.documentfoundation.org/attachment.cgi?bugid=144488&action=enter -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 144488] HYPERLINKS: Hyperlink to target in external document doesn't work in exported PDF (steps in comment 4)
https://bugs.documentfoundation.org/show_bug.cgi?id=144488 --- Comment #11 from harald.brau...@t-online.de --- Hello Stèphane, Case 1: We have a PDF document with a link to a LibreOffice-odt document. When creating the PDF file, the option "Convert document links to PDF targets" was not checked. Evince: link does not work. Foxit reader: link works. muPDF: Link works. Master PDF Editor: Not tested, because Russian product. Case 2: We have a PDF document with a link to a LibreOffice-odt document. When creating the PDF file the option "Convert document links to PDF targets" was checked. Evince: Link does not work. Foxit Reader: Link does not work. muPDF: Link works. Master PDF Editor: Not tested, because Russian product. I hope this helps you... Note: But this is not my problem. See bug description. Harald -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 144488] HYPERLINKS: Hyperlink to target in external document doesn't work in exported PDF (steps in comment 4)
https://bugs.documentfoundation.org/show_bug.cgi?id=144488 Stéphane Guillou (stragu) changed: What|Removed |Added CC||stephane.guillou@libreoffic ||e.org --- Comment #10 from Stéphane Guillou (stragu) --- Leaving aside the topic of master documents, I followed the steps in comment 5, and the link would not work in Evince, but it would in Okular. So from what I can see, it depends on the PDF reader you use. Harald and Dieter, can you please test with alternate PDF readers to see if that's the case for you as well? -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 144488] HYPERLINKS: Hyperlink to target in external document doesn't work in exported PDF (steps in comment 4)
https://bugs.documentfoundation.org/show_bug.cgi?id=144488 --- Comment #9 from harald.brau...@t-online.de --- (In reply to Timur from comment #8) > Is this the same as bug 142707? Hello Timur, I think bug 142707 this is a additional problem. Here is my current workaround to solve my problem: It is possible to export a PDF file from a global document (.odm file). However, the hyperlinks that link certain topics with partial documents of the global document are not adapted. In the PDF file then a) the targets are not found, or b) if the document parts are accessible, they are accessed. If such a PDF file is sent or transferred to another computer, case a) is always active. This is not desirable. For this reason, the basic procedure is as follows. 1: 1. update all directories and links in the global document (.odm file). Attention: This currently takes between 2.5 and 4 hours. 2. 2. save the global document 3. create a normal Writer document from the global document (.odt file; File -> Export) 4. deactivate links and write protection in .odt file; remove links 5. save .odt file 6. change relevant hyperlinks in .odt file Save .odt file. 7. Export a PDF file from an .odt file. Create .odt file from .odm file. 1. open .odm file Answer Yes to the question whether all links should be updated. 3. 3. when the links are updated: save the .odm file 4. then File -> Export and create .odt file 5. close .odm file 6. open .odt file 7. answer with No to the question whether all links should be updated. 8. go to Format -> Areas... Go to Format -> Areas... 9. range: mark all ranges (mark 1st range; go down and mark last range with Shift+Click. 10. shortcut: deactivate shortcuts 11. write protection: deactivate protection 12. click the OK button 13. save .odt file 14. go to Format -> Areas... Go to Format -> Areas... 15. 15. range: Mark all ranges (mark 1st range; go down and mark last range with Shift+Click. Click on the "Remove" button. 17. Close the window with the OK button. 18. Save the .odt file. Adapt hyperlinks in .odt file = Copy the .odt file into an empty temporary directory. 2. 2. change to the temporary directory 3. open .odt file with archive management (.odt file is a zip archive) 4. unpack the .odt file into the temporary directory. Finally, click on "Show file". 5. Close the archive management. 6. 6. search for the file "content.xml" in the temporary directory and open it with Atom. 7. 7. call Find -> Find in Buffer 8. in Find: (href=")+.{5,90}(\.odt#). Assumption: File whose hyperlinks are to be adapted has the file name "Gradle_User_Manual.odt". 9. 9. enter: href="# in Replace. Mark the option "Regular Expression" (.*) and wait until the searched places are marked by Atom. 11. Search for the first entry with the "Find" button and, if OK, change the marked entry with the "Replace" button. 12. Click the "Replace" button until all relevant hyperlinks have been changed. 13. 13. Save content.xml in the archive. 14. Close content.xml and Atom. 15. 15. Mark the .odt file. Call up the "Rename..." function. Execute the key combination Ctrl+A. Execute the key combination Ctrl+C. Press the ESC key. 16. Mark all files except the .odt file. 17. Call up the "Compress..." function. In the "Archive name" field, execute the key combination Ctrl+V. Then click on "Create". (Files are compressed into a zip archive; file extension .zip). 18. Delete the "old" .odt file in the temporary directory. 19. Mark the Zip archive. Call up the "Rename..." function. Remove the .zip file extension. Complete "Rename...". 20. Mark and delete all files in the temporary directory with the exception of the newly created .odt file. Export PDF file = 1. open .odt file with the changed hyperlinks 2. go to File -> Export as -> Export as PDF... go to 3. window PDF options Tab: General Area: Select option "All Area: Mark "Show PDF document after export". Images: Mark option "JPEG compression quality" and enter value "90%". Images: Mark "Reduce image resolution" and enter value "300DPI". General: Mark "(PDF/A, ISO19005)-Archive". General: Select "PDF/A version: PDF/A-2b". Structure: Select "Export outline". Structure: Select "Export automatically inserted blank pages". Tab: Initial display Areas: Mark option "Outline and page Enlargement: Mark option "Standard Page layout: Mark option "Standard Tab: User interface Window options: Mark "Show document title". Transitions: Mark "Use transition effects". User interface options: Mark no option Collapse outline: Mark option "Show all". Tab: Shortcuts General: Mark "Export outline as named destinations". Links between documents: Mark option "Standard behaviour". Tab: Security Nothing can be marked?? Tab: Digital signatures Nothing can be mark
[Libreoffice-bugs] [Bug 144488] HYPERLINKS: Hyperlink to target in external document doesn't work in exported PDF (steps in comment 4)
https://bugs.documentfoundation.org/show_bug.cgi?id=144488 --- Comment #8 from Timur --- Is this the same as bug 142707? -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 144488] HYPERLINKS: Hyperlink to target in external document doesn't work in exported PDF (steps in comment 4)
https://bugs.documentfoundation.org/show_bug.cgi?id=144488 --- Comment #7 from Timur --- It's much easier to test if there are minimal sample documents created and attached here. -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 144488] HYPERLINKS: Hyperlink to target in external document doesn't work in exported PDF (steps in comment 4)
https://bugs.documentfoundation.org/show_bug.cgi?id=144488 Dieter changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #6 from Dieter --- Harald thanks for that retest. So I change status to NEW. -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 144488] HYPERLINKS: Hyperlink to target in external document doesn't work in exported PDF (steps in comment 4)
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:///Document1.odf#Document2%7Coutline" ( 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 >>/Document2.pdf<<: file or directory not found" ( 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: Document2 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.
[Libreoffice-bugs] [Bug 144488] HYPERLINKS: Hyperlink to target in external document doesn't work in exported PDF (steps in comment 4)
https://bugs.documentfoundation.org/show_bug.cgi?id=144488 Dieter changed: What|Removed |Added Blocks||107733 Component|Writer |Printing and PDF export Summary|Writer: Globaldokument mit |HYPERLINKS: Hyperlink to |Teil-Dokumenten - |target in external document |Exportfunktionen passen |doesn't work in exported |Hyperlinks auf Fragmente in |PDF (steps in comment 4) |Teildokumenten nicht an | OS|Linux (All) |All --- Comment #4 from Dieter --- Harald, thank you for the documents. It took some time until I could have a look at it. I could find out the following: 1. If you add a link to a document, link in exported PDF works as expected. 2. If you add a link to a target within a document (for example a heading) link in exported PDF doesn't work. This is true for every document and not related to master documents. At least it is th underlying problem that should be reslved first. So I changed bug summary and hope you agree. Could you please test, if you can confirm the followong steps? Thank you. Steps to reproduce 1. Open an new document and write some words 2. Insert hyperlink with heading in a different document as target (Insert -> Hyperlink -> select document -> select target) -> O.K. 3. Export as PDF Actual result Link doesn't work. Tested with Version: 7.3.0.0.alpha1+ (x64) / LibreOffice Community Build ID: 742b8befecbcfc0cfab87cfcd87c83b7d8ef32ab CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL Additional informations Link to target within the same document works as expected. Link to external document (without a special target) works as expected BTW: If you want to set a link to a heading within the same document, it's much better to work with cross references (Insert -> Fields -> More Fields -> Tab "Cross References" -> Type Heading) Referenced Bugs: https://bugs.documentfoundation.org/show_bug.cgi?id=107733 [Bug 107733] [META] Hyperlink bugs and enhancements -- You are receiving this mail because: You are the assignee for the bug.