summaryrefslogtreecommitdiff
path: root/info/pdf-forms-tutorial/en/forms-src/fde0022.tex
diff options
context:
space:
mode:
Diffstat (limited to 'info/pdf-forms-tutorial/en/forms-src/fde0022.tex')
-rw-r--r--info/pdf-forms-tutorial/en/forms-src/fde0022.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/info/pdf-forms-tutorial/en/forms-src/fde0022.tex b/info/pdf-forms-tutorial/en/forms-src/fde0022.tex
new file mode 100644
index 0000000000..b8318bf1ee
--- /dev/null
+++ b/info/pdf-forms-tutorial/en/forms-src/fde0022.tex
@@ -0,0 +1,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