In my .tex file I added a hyperref link in my footer, which takes you back to the Table of contents. I want this link to disappear when I let the user print my document. I thought the OCG-P package would be my ideal solution for this, but I do not get the link to disappear when printing. Does anybody have an idea on how to fix this? I have provided an MWE below. Thanks in advance!
\documentclass{article}
\usepackage[dvipsnames,table]{xcolor}
\usepackage{datapie}
\usepackage{fancyhdr}
\usepackage{ocg-p,hyperref}
\usepackage{lipsum}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\contentsname}{Summary}
\patchcmd\tableofcontents{\contentsname}{\hypertarget{TOC}{\contentsname}}{}{\failed}
\begin{ocg}[printocg=never]{Footer2}{id1}{0}
\lfoot{\hyperlink{TOC}{$\leftarrow$ Summary}}
\end{ocg}
\begin{document}
\begin{titlepage}
\newpage
\tableofcontents
\thispagestyle{empty}
\newpage
\end{titlepage}
\section{SECTION 1}
\lipsum
\end{document}