[Solved] Retain hyperlinks when exporting to PDF

Discuss the word processor
Locked
azibuck
Posts: 3
Joined: Thu Jul 20, 2023 7:39 pm

[Solved] Retain hyperlinks when exporting to PDF

Post by azibuck »

I have been provided a Word doc that has hyperlinks. We use LibreOffice to convert from Word to PDF when loading to our online site. When I open the doc with LibreOffice Writer, the hyperlinks are still there. But after doing File, Export As, Export as PDF, the link text is blue, but is not hyperlinked. I've tried many variations of the options on the Links tab before exporting, but no luck. Am I missing something? Is this possible?

After opening Word doc in Writer:
ajz1076_000406.png
ajz1076_000406.png (14.18 KiB) Viewed 7878 times
After exporting to PDF:
ajz1076_000407.png
ajz1076_000407.png (10.37 KiB) Viewed 7878 times
Current Settings on the Export to PDF, Links tab:
ajz1076_000409.png
ajz1076_000409.png (46.04 KiB) Viewed 7878 times
And again, I've tried just about every varation of checked boxes.

Thanks for your consideration.
Last edited by azibuck on Mon Jul 24, 2023 3:36 pm, edited 1 time in total.
LibreOffice Writer 7.4.1.2 Windows 10
User avatar
Zizi64
Volunteer
Posts: 11505
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: LibreOffice Writer how do I retain hyperlinks when exporting to PDF

Post by Zizi64 »

The links of the attachments are not clickable. I think the uploading of the attachments was not completed.

And please upload real sample files (ODF, PDF) instead of the images. Use an image only to show the settings of the PDF export.
Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
azibuck
Posts: 3
Joined: Thu Jul 20, 2023 7:39 pm

Re: How do I retain hyperlinks when exporting to PDF

Post by azibuck »

The images show the links are clickable in LOW, not clickable in the exported PDF. But if it helps, here is the doc and the exported pdf.
Attachments
NO0492-027a Appendix 1 Ethics Disclosure Statement.pdf
(97.4 KiB) Downloaded 327 times
NO0492-027a Appendix 1 Ethics Disclosure Statement.docx
(28.17 KiB) Downloaded 313 times
LibreOffice Writer 7.4.1.2 Windows 10
User avatar
Zizi64
Volunteer
Posts: 11505
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: How do I retain hyperlinks when exporting to PDF

Post by Zizi64 »

You need edit the hyperlinks:

Right Click on a Hyperlink - Edit Hyperlink - Internet - Further settings - Frame - _blank
Edit hyperlinks.png
Edit hyperlinks.png (21.82 KiB) Viewed 7918 times
Then try to export the document again: File - Export as - Export as PDF

I just modified the first three hyperlinks only in your document:
Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
azibuck
Posts: 3
Joined: Thu Jul 20, 2023 7:39 pm

Re: How do I retain hyperlinks when exporting to PDF

Post by azibuck »

Thank you! You may consider this rhetorical, but if you know... what does the Frame setting do? Why did that matter?
LibreOffice Writer 7.4.1.2 Windows 10
User avatar
MrProgrammer
Moderator
Posts: 5432
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: How do I retain hyperlinks when exporting to PDF

Post by MrProgrammer »

azibuck wrote: Fri Jul 21, 2023 9:42 pm what does the Frame setting do?
service Frame
service Frame wrote:_blank   is used to create a new frame when dispatching the URL
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
User avatar
Zizi64
Volunteer
Posts: 11505
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: How do I retain hyperlinks when exporting to PDF

Post by Zizi64 »

but if you know... what does the Frame setting do? Why did that matter?
I just tried to change some properties what maybe are related to the PDF export and to the problem... And this one worked... I do not changed any other parameters, options nor properties of your original sample file when this one was tried.
Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
VHF
Posts: 1
Joined: Sat Dec 02, 2023 9:21 pm

Re: [Solved] How do I retain hyperlinks when exporting to PDF

Post by VHF »

An update, after some 13 years! I followed the gentleman's advice (to add the _blank field) and was disappointed that it did not work. Then I noticed he also said to use the Export function. THAT WORKED! In other words, if my printer software (or the Mac program?) did the compiling, it did, yes, create a pdf with certain words in blue, but these did not function as hyperlinks. When OpenOffice did the compiling instead, the links remained active.
OpenOffice 3.1 on Mac High Sierra
Locked