PDF exported hyperlinks from sub-documents

I switched from OpenOffice to LibreOffice last week with impressive results. However, I am encountering a problem and need help resolving it.
Using Writer, I have a master document with over 800 sub-documents. Many of the sub-documents contain hyperlinks, urls to various pages on the web. If I export a pdf from a sub-document, the hyperlink in the pdf file works as intended; click and the link is executed. However, if a pdf is created from the master document, the hyperlinks from the sub-documents work only if the Text field contains the actual URL:


If the hyperlink in the sub-document contains any other text in the Text field, such as “Click here”,
the text “Click here” shows in the pdf file from the master document but is simply underlined and in blue; it does not function.
Again, if I create a pdf from the sub-document alone, all hyperlinks in the subsequent pdf file work as expected, the problem is in a pdf created from a master document IF a sub-document contains a hyperlink having other information than the actual url in the hyperlink “Text:” field.
I am using 25.2.5.2 of LibreOffice and have used several different pdf readers while testing for a solution.
This was not and is not a problem with OpenOffice Writer.

Have you try to export the master document (.odm) to text document (.odt) and then expor to pdf?

I just tried your suggestion. The results were no different.
I tried OpenOffice Writer again and it worked exactly as intended.

Did you file a bug report with an attached small file? From your answer to @bantoniof it seems, that you don’t even need a master document, just a section? And of course, a sample document may be reduced to a single page and single hyperlink, if that keeps the problem happening.

No, I did not file a bug report. I posted here in order to better determine whether I may have encountered a bug or if I was simply ignorant of something as a new LibreOffice user.
I am uncertain how to respond to your comment, “you don’t even need a master document, just a section?” When I create a pdf from an odt, no master document involved, the results are as expected. But when the origination is a from master document, whether from odm to pdf, or odm to odt to pdf, the behavior is not as expected but as described above.

If you create a pdf from an ODT and you do not have problems …
When you export the master document to ODT and then create the pdf from those ODT,

  • You sould not have problems

The problem can reside in the link or the export settings

Hi,
You might try the odm2pdf4CLI extension

Note that’s a command-line script which isn’t designed for your specific need but might help.

Regarding the “link or export settings”, everything I have tried to this point has produced the same, undesired results. Do you have specific suggestions?
I realize I “should not have problems”, my problem is that I do. And the problem seems to stem from the processing of master documents only, any master document. Any ideas on what I could look for in a master document?

I installed the extension you suggested and created a pdf using the command you suggested. There was no change in the behavior.
In testing I did discover another oddity: on one line in a particular document I have two hyperlinks both of which are referred to without text:


The oddity is that the second link works as intended and the first link does not work. Up until now, each time I was using a link which showed the full URL, the link would work. Curious.