Is there any way I can embed a fillable PDF Form from hyperref's \Form (or anything equivalent) in a tikzpicture?
Asked
Active
Viewed 268 times
2
Hans
- 323
1 Answers
6
Indeed, there is nothing special about \TextField in a tikzpicture environment. It can be inserted in the text argument of a TikZ node:
\documentclass{article}
\usepackage{hyperref}
\usepackage{tikz}
\makeatletter
\newcommand\fntSize{\f@size pt} %current font size
\makeatother
\begin{document}
\begin{Form}
\begin{tikzpicture}
\node (A) [inner sep=0pt, outer sep=0pt] {\TextField[width=4cm, charsize=\fntSize, name=tfNameA]{label A:}};
\node [inner sep=0pt, outer sep=0pt, below of=A] {\Huge\TextField[width=4cm, charsize=\fntSize, name=tfNameB]{label B:}};
\end{tikzpicture}
\end{Form}
\end{document}
AlexG
- 54,894
\node (Y)[] {label: \TextField[width=4cm]{tfName}{}};. I tried many more complicated things but never tried anything as simple! Thanks! Would you rewrite that as an answer so I can mark it as a solution? – Hans Oct 07 '18 at 17:22