I'm creating a fancy header with hyperlinks (see here) for a large document. However, if/when this document is printed, this header is not useful and uses up ink and space. Is it possible to include an element in a pdf file such that it is not actually printed to paper but does display on screen?
1 Answer
Jagath already mention a solution in his comment:
Can we achieve this using PDF layers? A combination of non-printable and printable layer?
Heres the corresponding MWE:
\documentclass{scrartcl}
\usepackage{ocg-p}
%%%%%%%%%%%%%%%
\begin{document}
text
\begin{ocg}[printocg=never]{Notprinted}{noprint}{1}
This paragraph is never printed
\end{ocg}
Text after non print
\end{document}
I tested it with Sumatra and Acrobat XI.
With the same technique you may also put things on a print, but not on a screen:
\documentclass{scrartcl}
\usepackage{ocg-p}
%%%%%%%%%%%%%%%
\begin{document}
test
\begin{ocg}[printocg=always]{Onlyprint}{onlyprint}{0}
This paragraph is printed, but not shown by default
\end{ocg}
test after
\end{document}
Lets combine it with a coffee stain, an image of a fly ;)
PDF
layers? A combination of non-printable and printable layer?