To illustrate:
<a href="https://www.google.com">Google anchor link</a>
on the website, it displays as: Google anchor link
When printed, it shows as:
Google anchor link(https://www.google.com)
To address this issue, I included in the CSS:
@media print {
a:link:after,
a:visited:after {
content: "" !important;
}}
Now while printing, it appears as: Google anchor link (the link is not displayed after the anchor).
The dilemma:
If instead of a standard printer, a virtual printer (such as doPDF) is used to generate a .PDF file from the page, the anchor link loses its functionality and is presented only as text: Google anchor link.
Having clickable anchor text in a .PDF file should be feasible, considering numerous .PDF files featuring "clickable anchor links".