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

--- Comment #9 from [email protected] ---
(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 marked????
Click on the "Export" button. 5.
Specify a file name for the PDF file (e.g.
20210913_Gradle_User_Manual_7.2_002.00.pdf). 6.
Click on the "Save" button.


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

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