# fold/unfold sections to expand in PDF

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.

• You can create things like drop-down menus etc. However, if this is a CV, I strongly recommend not to do this. – cfr Apr 16 '14 at 20:39
• Do you know which PDF viewer potential employers will view your CV in? Because many of these features work only in certain viewers. Typically, they work in (certain versions of) Adobe Reader and you take your chances with anything else. Also, what if somebody wants to print your CV? You wouldn't be able to use it in any situation where your application might be circulated on paper. (So that rules out all actual job applications.) At best you could post it online with a note that it requires Adobe Reader version n. That is bound to annoy somebody. – cfr Apr 16 '14 at 20:47
• Accepted. I drop this idea. – Rene Duchamp Apr 16 '14 at 20:51
• Still it is a good question, with other applications too. – alfC Apr 16 '14 at 20:58
• Yes, "unfortunately" the OP mentioned CV in a comment. The question is well posed still (and it doesn't mention CV). – alfC Apr 16 '14 at 21:16

"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}

• Referring to 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. – cfr Jul 4 '15 at 2:02