在 PDF 中,macOS 中可以单独勾选方框,但 Windows 中却不能。如果我在 Windows 中勾选一个方框,它会自动勾选其他四个问题的方框。为什么?!
代码如下:
\documentclass[pagesize=pdftex,DIV=16]{scrartcl}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage[danish]{babel}
\usepackage[utf8]{inputenc}
\newsavebox\TBox
\begin{document}
\begin{Form}
\section*{Application for xxx}
\sbox\TBox{Name: }%
\TextField[backgroundcolor=gray!30,borderwidth=0,width=\dimexpr\linewidth-\wd\TBox]{
Name: }\\[1ex]
\sbox\TBox{Organization: }%
\TextField[backgroundcolor=gray!30,borderwidth=0,width=\dimexpr\linewidth-\wd\TBox]{
Organization: }\\[1ex]
\sbox\TBox{Address: }%
\TextField[backgroundcolor=gray!30,borderwidth=0,width=\dimexpr\linewidth-\wd\TBox]{
Address: }\\[1ex]
\sbox\TBox{Postal code: }%
\TextField[backgroundcolor=gray!30,borderwidth=0,width=\dimexpr0.5\linewidth-\wd\TBox]{Postal code: }
\sbox\TBox{Abcd: }%
\TextField[backgroundcolor=gray!30,borderwidth=0,width=\dimexpr0.5\linewidth-\wd\TBox]{Abcd: }\\[1ex]
\sbox\TBox{E-Mail:: }%
\TextField[backgroundcolor=gray!30,borderwidth=0,width=\dimexpr\linewidth-\wd\TBox]{E-mail: }
\end{Form} \\
\begin{Form}
\begin{tabular}{l}
\hspace*{-0.73cm} Question \hspace*{1cm}
\CheckBox[name=first=true,width=1em]{Ja} \hspace*{0.2cm}
\CheckBox[name=second,width=1em]{Nej} \\\\[-0.2cm]
\hspace*{-0.73cm} Another question \hspace*{0.5cm}
\CheckBox[name=first=true,width=1em]{Ja} \hspace*{0.2cm}
\CheckBox[name=second,width=1em]{Nej} \\\\[-0.2cm]
\hspace*{-0.73cm} Another question \hspace*{0.5cm}
\CheckBox[name=first=true,width=1em]{Ja} \hspace*{0.2cm}
\CheckBox[name=second,width=1em]{Nej} \\\\[-0.2cm]
\hspace*{-0.73cm} Another question \hspace*{0.5cm}
\CheckBox[name=first=true,width=1em]{Ja} \hspace*{0.2cm}
\CheckBox[name=second,width=1em]{Nej} \\\\[-0.2cm]
\hspace*{-0.73cm} Last question \hspace*{0.5cm}
\CheckBox[name=first=true,width=1em]{Ja} \hspace*{0.2cm}
\CheckBox[name=second,width=1em]{Nej} \\\\[0.2cm]
\end{tabular}
\end{Form}
\end{document}