summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/forms-src/fde0022.tex
blob: b8318bf1ee936a61d725d2a83741d1d4bf1be0f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
To create a help  annotation use
\begin{lstlisting}
~\pdfannot width 20pt {
	/Subtype /Text
	/Name /Help
	/C [0.65 0.79 0.94]
	/T (Help text title)
	/Contents (The help text to show.)
}\(\qquad\)
\end{lstlisting}
No room is reserved by pdf\LaTeX{} for the icon, so we add some
space (qquad). To have some room between the form field and the  help
icon we use a non-breaking space.

The ``/Name /Help'' entry chooses the annotation icon
(question mark).\\
The ``/C'' entry sets the icon color, I recommend to use the same color
as used in the form fields.

Example ex0012 shows how to use \textsc{pdf} annotations to provide
help.
\clearpage