Is there a way to fold/unfold certain sections in a pdf. Only when the user clicks on the section or plus sign the items show up.
Example: user clicks on the plus sign and the items appear as drop down list.
Is there a way to fold/unfold certain sections in a pdf. Only when the user clicks on the section or plus sign the items show up.
Example: user clicks on the plus sign and the items appear as drop down list.
"Folding" is a typical application for PDF layers (OCG). This works in most recent viewers, but problems might arise with crippled poppler
based so called PDF viewers on Linux
\documentclass[a4paper]{minimal}
\usepackage{ocgx}
\begin{document}
Max Mustermann \switchocg{ocg1}{\fcolorbox{blue}{red}{\bfseries +}}\begin{ocg}{OCG 1}{ocg1}{0}
\colorbox{yellow}{ \parbox{5cm}{Max Mustermann\\Musterweg 1\\12345 Musterstadt}}
\end{ocg}
Erika Mustermann
\end{document}
Add a note: Best viewed with Adobe Reader! ;-)
poppler
-based PDF viewers as 'crippled' is offensive, frankly. Unlike Adobe's Reader, my poppler
-based viewer is, in fact, not crippled by design. Reader is.