<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[ngerman,a4paper]{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{mathptmx}
\usepackage[scaled=.92]{helvet}
\usepackage{courier}
\renewcommand*{\familydefault}{phv}
\usepackage[left=25mm,top=25mm,bottom=10mm,right=10mm]{geometry}
\usepackage{fancyhdr}
\lhead{Firma ABC}\chead{}\rhead{Abteilung XYZ}
\lfoot{}\cfoot{}\rfoot{}
\pagestyle{fancy}
\usepackage{graphicx}
\usepackage{color}
\usepackage[
  pdftex,a4paper=true,colorlinks=true,
  pdftitle={Formular für Schlüsselausgabe},pdfsubject={Zugang},
  pdfauthor={ich},
  pdfpagemode=UseNone,pdfstartview=FitH,
  pagebackref,pdfhighlight={/N}
]{hyperref}
\usepackage[pdftex]{insdljs}
\begin{insDLJS}[exaaaa]{exaaaa}{JavaScript auf Document Level}

// indicate that the function was not yet run
var done = 0;

// function to run when opening the document
function myFirstJavaScriptFunction()
{
  if(!done) {
    done = 1;
    app.alert("Das Formular wurde geöffnet.");
  }
}
\end{insDLJS}
\OpenAction{/S /JavaScript /JS (myFirstJavaScriptFunction();)}
\newcommand{\textforlabel}[2]{%
\TextField[name={#1},value={#2},width=7em,align=2,%
bordercolor={1 1 1},readonly=true]{}%
}
\begin{document}
\section*{Anforderung eines Gruppenschlüssels}
\begin{Form}
\begin{tabular}{|rl|}
\hline
&amp;\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Mitarbeiter}}\\
&amp;\\*[-0.9em]\textforlabel{vn}{Vorname:}&amp;%
\TextField[name=vorname,width=20em,%
bordercolor={0.65 0.79 0.94}]{}\\
&amp;\\*[-0.9em]\textforlabel{nn}{Name:}&amp;%
\TextField[name=name,width=20em,%
bordercolor={0.65 0.79 0.94}]{}\\
&amp;\\*[-0.9em]\textforlabel{ab}{Abteilung:}&amp;%
\ChoiceMenu[name=abt,width=20em,popdown=true,value=v,%
bordercolor={0.65 0.79 0.94}]{}{%
Verkauf=v,Fertigung=f,Service=s}\\
&amp;\\*[-0.9em]\hline
&amp;\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zeitdauer}}\\
&amp;\\*[-0.9em]\textforlabel{z}{Zeitraum:}&amp;%
\ChoiceMenu[name=zeit,width=20em,popdown=true,value=u,%
bordercolor={0.65 0.79 0.94}]{}{%
unbefristet=u,befristet=b}\\
&amp;\\*[-0.9em]\textforlabel{v}{von:}&amp;%
\TextField[name=von,width=10em,%
bordercolor={0.65 0.79 0.94}]{}\\
&amp;\\*[-0.9em]\textforlabel{b}{bis:}&amp;%
\TextField[name=bis,width=10em,%
bordercolor={0.65 0.79 0.94}]{}\\
&amp;\\*[-0.9em]\hline
&amp;\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{%
Zu schließende Türen}}\\
&amp;\\*[-0.9em]\textforlabel{th}{Haustür:}&amp;%
\CheckBox[name=ht,width=1.2em,%
bordercolor={0.65 0.79 0.94}]{}\\
&amp;\\*[-0.9em]\textforlabel{t1}{Etage 1:}&amp;%
\CheckBox[name=e1,width=1.2em,%
bordercolor={0.65 0.79 0.94}]{}\\
&amp;\\*[-0.9em]\textforlabel{t2}{Etage 2:}&amp;%
\CheckBox[name=e2,width=1.2em,%
bordercolor={0.65 0.79 0.94}]{}\\
&amp;\\
\hline
\end{tabular}
\end{Form}
\end{document}
</pre></body></html>