Is there a way to make some graphical elements to be non-printable, i.e. prints as white, while staying fully visible on screen?
Here's a MWE to play and have fun with:
\documentclass[11pt,letterpaper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry}
\usepackage{microtype}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{eso-pic}
\usepackage{xcolor}
\usepackage{showframe}
\newlength{\distance}
\setlength{\distance}{0.0in}
\newlength{\rulethickness}
\setlength{\rulethickness}{0.5in}
\newlength{\ruleheight}
\setlength{\ruleheight}{\paperheight}
\newlength{\xoffset}
\newlength{\yoffset}
\setlength{\yoffset}{0pt}
\AddToShipoutPicture{%
\setlength\fboxsep{0pt}%
\ifodd\value{page}%
\setlength{\xoffset}{\distance}%
\else
\setlength{\xoffset}{\dimexpr\paperwidth-\rulethickness-\distance}%
\fi
\AtPageLowerLeft{%
\put(\LenToUnit{\xoffset},\LenToUnit{\yoffset}){%
\colorbox{lightgray}{\parbox[b][\ruleheight][c]{\rulethickness}{%
\centering
\ifodd\value{page}%
\rotatebox[origin=cB]{90}{\color{red}{\large{\normalfont\textsc{Copyright notice}}}}%
\else
\rotatebox[origin=cB]{90}{\color{blue}{\huge{\normalfont\textsc{Some Title}}}}%
\fi
}}}}%
}
\begin{document}
Test
\newpage
Another page
\end{document}
This code draws a gray vertical bar in the inner margins, with some copyright notice. I need it to stay visible while reading the PDF document on screen. But I would also like it to turn completely invisible when printed on paper. Is that possible with some LaTeX commands?
EDIT: Oups ! This question appears to be a duplicate of this one : Create element in pdf that doesn't print to paper
accsupppackage allows one thing to go to the visible layer and something else to go to the PDF data layer. For example, like this: https://tex.stackexchange.com/questions/241968/how-to-protect-a-word-from-finding-by-google-search-machines/388006#388006. However, this may not be exactly what you are looking for, as this is more for copy/paste protection. – Steven B. Segletes Mar 31 '21 at 22:00