That's good to know, a perennial question - many threads on this.
For printing webpages to pdf and preserving their hyperlinks, after seeing forum posts elsewhere I've used for some time wk html to pdf wkhtmltopdf.org
- I found the "mingw-w64-cross" compiled version worked well on Windows 7 Professional and Home Premium editions, x64, and its use was facilitated further by running it via NirSoft's "Advanced Run" and selecting Run as ... Administrator (force UAC Elevation).
The thought occurs to try using this same application if you want to print to pdf from an application other than MS Word some item that contains hyperlinks - as someone else has observed, if it's eg Writer in Open Office or LibreOffice the export-as-pdf function likely retains the hyperlinks. If it's another application however you could try re-saving the relevant item as html and then feeding that to wkhtmltopdf.exe to make a pdf with hyperlinks preserved.
In the limited number of cases where wkhtmltopdf.exe fails with live webpages I've tried its embedded version in Chromium and if that fails (usually but not exclusively in the case of pages with css compacted menus which fail to display all at once even with bookmarklet "ToggleCSS" activated) then I'll display the page in Firefox v60+ and use the simplify page option if present and also where necessary run ToggleCSS and then run a further bookmarklet "full urls as link text" then print to pdf using PDFCreator. However if running bookmarklet "full urls as link text" makes the page look a mess e.g. with overlapping text then I'll undo/restart and omit that step and print again to pdf with PDFCreator but also run separate bookmarklet "List all Links" and print that to pdf as a separate page using PDFCreator, then combine it (just a list of urls) with the pdf of the substantive page. Bit messy but in extremis it preserves content and links even if you have to do some "interpretation" to match them up in complex pages.
For live webpages printing to pdf with hyperlinks retained, the only other solution I can think of offhand is to use one of the proprietary easy-print Add-ons or similar e.g.
however these seem to run the print command their own servers so potentially there's a privacy issue. For those concerned it's probably more prudent to run PDFCreator even if it means employing one of the above shims to preserve hyperlinks.
Bookmarklets at e.g.