\documentclass{report}
\usepackage[extension=pdf]{hyperref}
\begin{document}
Some text.
\ReplaceWithWhiteWhenPrinting{Click here to so something/go somewhere.}
More text.
\end{document}
Thank you for your help!
Stephan dot Heister -you know what to place here- gmail dot com
There may be a way to do this using a PDF annotation. ISTR that PDF
annotations support a flag that determines whether the annotation should
print.
-- Scott
Ok, I'll search for that, thanks!
Stephan
you could try the new, experimental option ocgcolorlinks of Heiko
Oberdiek's hyperref package (2010/01/25 v6.80d or newer, see the Readme
of the package):
\documentclass{report}
\usepackage{color}
\usepackage[ocgcolorlinks,extension=pdf]{hyperref}
\listfiles
\begin{document}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit,
{\color{white} \href{#target}{link to target}}
sed diam nonummy nibh
\newpage
euismod \hypertarget{target}{target text} tincidunt ut laoreet dolore
magna...
\end{document}
When viewing the pdf file, "link to target" is given in red, when
printing the file, the same text is given in white. (If you use another
background colour, you would have to change the colour to make the text
"invisible", of course.)
This method has one drawback: ocgcolorlinks can only be enabled globally
at \usepackage[ocgcolorlinks]{hyperref}, so if you would like to have
other formats for the other links, e.g. red boxes, that is not possible
yet. Maybe Mr Oberdiek reads this and already works at it (please)?
Martin
--
Martin dot Muench at Uni-Bonn dot de