diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples')
18 files changed, 2120 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/Makefile b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/Makefile new file mode 100644 index 00000000000..4cddc10f89d --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/Makefile @@ -0,0 +1,21 @@ + +ALLFORMS1= ex0001.pdf ex0002.pdf ex0003.pdf ex0004.pdf ex0005.pdf ex0006.pdf +ALLFORMS2= ex0007.pdf ex0008.pdf ex0009.pdf ex0010.pdf ex0011.pdf ex0101.pdf +ALLFORMS3= ex0201.pdf ex0301.pdf ex0012.pdf ex0013.pdf +ALLFORMS= $(ALLFORMS1) $(ALLFORMS2) $(ALLFORMS3) + +all: allforms + +allforms: $(ALLFORMS) + +.SUFFIXES: + +.SUFFIXES: .pdf .tex + +.tex.pdf: + pdflatex $* + pdflatex $* + pdflatex $* + +clean: + -rm -fr *.bbl *.blg *.out *.djs ex0*.pdf ex0*.aux ex0*.log diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0001.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0001.tex new file mode 100644 index 00000000000..b79208a898c --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0001.tex @@ -0,0 +1,40 @@ +\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} +\begin{document} +\section*{Anforderung eines Gruppenschlüssels} +\begin{Form} +\textbf{Mitarbeiter}\\ +Vorname: \TextField[name=vorname]{}\\ +Name: \TextField[name=name]{}\\ +Abteilung: \ChoiceMenu[name=abt]{}{% +Verkauf=v,Fertigung=f,Service=s}\\ +\textbf{Zeitdauer}\\ +Zeitraum: \ChoiceMenu[name=zeit]{}{% +befristet=b,unbefristet=u}\\ +von: \TextField[name=von]{}\\ +bis: \TextField[name=bis]{}\\ +\textbf{Zu schlie"sende Türen}\\ +Haustür: \CheckBox[name=ht]{}\\ +Etage 1: \CheckBox[name=e1]{}\\ +Etage 2: \CheckBox[name=e2]{}\\ +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0002.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0002.tex new file mode 100644 index 00000000000..51cc2bcc377 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0002.tex @@ -0,0 +1,55 @@ +\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} +\begin{document} +\section*{Anforderung eines Gruppenschlüssels} +\begin{Form} +\begin{tabular}{|rl|} +\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Mitarbeiter}}\\ +Vorname:&% +\TextField[name=vorname]{}\\ +Name:&% +\TextField[name=name]{}\\ +Abteilung:&% +\ChoiceMenu[name=abt]{}{% +Verkauf=v,Fertigung=f,Service=s}\\ +\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zeitdauer}}\\ +Zeitraum:&% +\ChoiceMenu[name=zeit]{}{% +befristet=b,unbefristet=u}\\ +von:&% +\TextField[name=von]{}\\ +bis:&% +\TextField[name=bis]{}\\ +\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zu schließende Türen}}\\ +Haustür:&% +\CheckBox[name=ht,width=1.2em]{}\\ +Etage 1:&% +\CheckBox[name=e1,width=1.2em]{}\\ +Etage 2:&% +\CheckBox[name=e2,width=1.2em]{}\\ +\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0003.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0003.tex new file mode 100644 index 00000000000..ccbd394160c --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0003.tex @@ -0,0 +1,56 @@ +\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} +\begin{document} +\section*{Anforderung eines Gruppenschlüssels} +\begin{Form} +\begin{tabular}{|rl|} +\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Mitarbeiter}}\\ +&\\*[-0.9em]Vorname:&% +\TextField[name=vorname,width=20em]{}\\ +&\\*[-0.9em]Name:&% +\TextField[name=name,width=20em]{}\\ +&\\*[-0.9em]Abteilung:&% +\ChoiceMenu[{}={},name=abt,width=20em,popdown=true]{}{% +Verkauf=v,Fertigung=f,Service=s}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zeitdauer}}\\ +&\\*[-0.9em]Zeitraum:&% +\ChoiceMenu[name=zeit,width=20em,popdown=true]{}{% +befristet=b,unbefristet=u}\\ +&\\*[-0.9em]von:&% +\TextField[name=von,width=10em]{}\\ +&\\*[-0.9em]bis:&% +\TextField[name=bis,width=10em]{}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zu schließende Türen}}\\ +&\\*[-0.9em]Haustür:&% +\CheckBox[name=ht,width=1.2em]{}\\ +&\\*[-0.9em]Etage 1:&% +\CheckBox[name=e1,width=1.2em]{}\\ +&\\*[-0.9em]Etage 2:&% +\CheckBox[name=e2,width=1.2em]{}\\ +&\\ +\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0004.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0004.tex new file mode 100644 index 00000000000..99963b31aa6 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0004.tex @@ -0,0 +1,60 @@ +\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} +\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 +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Mitarbeiter}}\\ +&\\*[-0.9em]\textforlabel{vn}{Vorname:}&% +\TextField[name=vorname,width=20em]{}\\ +&\\*[-0.9em]\textforlabel{nn}{Name:}&% +\TextField[name=name,width=20em]{}\\ +&\\*[-0.9em]\textforlabel{ab}{Abteilung:}&% +\ChoiceMenu[name=abt,width=20em,popdown=true,value=v]{}{% +Verkauf=v,Fertigung=f,Service=s}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zeitdauer}}\\ +&\\*[-0.9em]\textforlabel{z}{Zeitraum:}&% +\ChoiceMenu[name=zeit,width=20em,popdown=true,value=u]{}{% +unbefristet=u,befristet=b}\\ +&\\*[-0.9em]\textforlabel{v}{von:}&% +\TextField[name=von,width=10em]{}\\ +&\\*[-0.9em]\textforlabel{b}{bis:}&% +\TextField[name=bis,width=10em]{}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zu schließende Türen}}\\ +&\\*[-0.9em]\textforlabel{th}{Haustür:}&% +\CheckBox[name=ht,width=1.2em]{}\\ +&\\*[-0.9em]\textforlabel{t1}{Etage 1:}&% +\CheckBox[name=e1,width=1.2em]{}\\ +&\\*[-0.9em]\textforlabel{t2}{Etage 2:}&% +\CheckBox[name=e2,width=1.2em]{}\\ +&\\ +\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0005.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0005.tex new file mode 100644 index 00000000000..07ec65d5091 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0005.tex @@ -0,0 +1,71 @@ +\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} +\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 +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Mitarbeiter}}\\ +&\\*[-0.9em]\textforlabel{vn}{Vorname:}&% +\TextField[name=vorname,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{nn}{Name:}&% +\TextField[name=name,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{ab}{Abteilung:}&% +\ChoiceMenu[name=abt,width=20em,popdown=true,value=v,% +bordercolor={0.65 0.79 0.94}]{}{% +Verkauf=v,Fertigung=f,Service=s}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zeitdauer}}\\ +&\\*[-0.9em]\textforlabel{z}{Zeitraum:}&% +\ChoiceMenu[name=zeit,width=20em,popdown=true,value=u,% +bordercolor={0.65 0.79 0.94}]{}{% +unbefristet=u,befristet=b}\\ +&\\*[-0.9em]\textforlabel{v}{von:}&% +\TextField[name=von,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{b}{bis:}&% +\TextField[name=bis,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{% +\textbf{Zu schließende Türen}}\\ +&\\*[-0.9em]\textforlabel{th}{Haustür:}&% +\CheckBox[name=ht,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t1}{Etage 1:}&% +\CheckBox[name=e1,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t2}{Etage 2:}&% +\CheckBox[name=e2,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\ +\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0006.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0006.tex new file mode 100644 index 00000000000..ff006a9e849 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0006.tex @@ -0,0 +1,87 @@ +\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 +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Mitarbeiter}}\\ +&\\*[-0.9em]\textforlabel{vn}{Vorname:}&% +\TextField[name=vorname,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{nn}{Name:}&% +\TextField[name=name,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{ab}{Abteilung:}&% +\ChoiceMenu[name=abt,width=20em,popdown=true,value=v,% +bordercolor={0.65 0.79 0.94}]{}{% +Verkauf=v,Fertigung=f,Service=s}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zeitdauer}}\\ +&\\*[-0.9em]\textforlabel{z}{Zeitraum:}&% +\ChoiceMenu[name=zeit,width=20em,popdown=true,value=u,% +bordercolor={0.65 0.79 0.94}]{}{% +unbefristet=u,befristet=b}\\ +&\\*[-0.9em]\textforlabel{v}{von:}&% +\TextField[name=von,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{b}{bis:}&% +\TextField[name=bis,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{% +Zu schließende Türen}}\\ +&\\*[-0.9em]\textforlabel{th}{Haustür:}&% +\CheckBox[name=ht,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t1}{Etage 1:}&% +\CheckBox[name=e1,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t2}{Etage 2:}&% +\CheckBox[name=e2,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\ +\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0007.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0007.tex new file mode 100644 index 00000000000..88532ab5172 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0007.tex @@ -0,0 +1,86 @@ +\documentclass[ngerman,a4paper]{scrartcl} +\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}[exaaab]{exaaab}{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\"{u}ssels} +\begin{Form} +\begin{tabular}{|rl|} +\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Mitarbeiter}}\\ +&\\*[-0.9em]\textforlabel{vn}{Vorname:}&% +\TextField[name=vorname,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{nn}{Name:}&% +\TextField[name=name,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{ab}{Abteilung:}&% +\ChoiceMenu[name=abt,width=20em,popdown=true,value=v,% +bordercolor={0.65 0.79 0.94}]{}{% +Verkauf=v,Fertigung=f,Service=s}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zeitdauer}}\\ +&\\*[-0.9em]\textforlabel{z}{Zeitraum:}&% +\ChoiceMenu[name=zeit,width=20em,popdown=true,value=u,% +bordercolor={0.65 0.79 0.94}]{}{% +unbefristet=u,befristet=b}\\ +&\\*[-0.9em]\textforlabel{v}{von:}&% +\TextField[name=von,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{b}{bis:}&% +\TextField[name=bis,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{% +\textbf{Zu schlie\ss{}ende T\"{u}ren}}\\ +&\\*[-0.9em]\textforlabel{th}{Haust\"{u}r:}&% +\CheckBox[name=ht,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t1}{Etage 1:}&% +\CheckBox[name=e1,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t2}{Etage 2:}&% +\CheckBox[name=e2,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\ +\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0008.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0008.tex new file mode 100644 index 00000000000..078bb5add8c --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0008.tex @@ -0,0 +1,103 @@ +\documentclass[ngerman,a4paper]{scrartcl} +\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} +\immediate\pdfobj { +<< + /WP << /S /JavaScript /JS (willPrint();) >> + /DP << /S /JavaScript /JS (didPrint();) >> +>> +} +\pdfcatalog{/AA \the\pdflastobj\space 0 R} +\begin{insDLJS}[exaaac]{exaaac}{JavaScript auf Document Level} + +// indicate that the function was not yet run +var done = 0; + +function willPrint() +{ + app.alert("Gleich wird gedruckt."); +} + +function didPrint() +{ + app.alert("Es wurde gedruckt."); +} + +// 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\"{u}ssels} +\begin{Form} +\begin{tabular}{|rl|} +\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Mitarbeiter}}\\ +&\\*[-0.9em]\textforlabel{vn}{Vorname:}&% +\TextField[name=vorname,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{nn}{Name:}&% +\TextField[name=name,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{ab}{Abteilung:}&% +\ChoiceMenu[name=abt,width=20em,popdown=true,value=v,% +bordercolor={0.65 0.79 0.94}]{}{% +Verkauf=v,Fertigung=f,Service=s}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zeitdauer}}\\ +&\\*[-0.9em]\textforlabel{z}{Zeitraum:}&% +\ChoiceMenu[name=zeit,width=20em,popdown=true,value=u,% +bordercolor={0.65 0.79 0.94}]{}{% +unbefristet=u,befristet=b}\\ +&\\*[-0.9em]\textforlabel{v}{von:}&% +\TextField[name=von,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{b}{bis:}&% +\TextField[name=bis,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{% +\textbf{Zu schlie\ss{}ende T\"{u}ren}}\\ +&\\*[-0.9em]\textforlabel{th}{Haust\"{u}r:}&% +\CheckBox[name=ht,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t1}{Etage 1:}&% +\CheckBox[name=e1,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t2}{Etage 2:}&% +\CheckBox[name=e2,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\ +\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0009.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0009.tex new file mode 100644 index 00000000000..4be6b064d03 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0009.tex @@ -0,0 +1,174 @@ +\documentclass[ngerman,a4paper]{scrartcl} +\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} +\immediate\pdfobj { +<< + /WP << /S /JavaScript /JS (willPrint();) >> + /DP << /S /JavaScript /JS (didPrint();) >> +>> +} +\pdfcatalog{/AA \the\pdflastobj\space 0 R} +\begin{insDLJS}[exaaad]{exaaad}{JavaScript auf Document Level} + +// indicate that the function was not yet run +var done = 0; + +function colorsPrinting() +{ + this.getField("vorname").fillColor = color.white; + this.getField("name").fillColor = color.white; + this.getField("abt").fillColor = color.white; + this.getField("zeit").fillColor = color.white; + this.getField("von").fillColor = color.white; + this.getField("bis").fillColor = color.white; + this.getField("ht").fillColor = color.white; + this.getField("e1").fillColor = color.white; + this.getField("e2").fillColor = color.white; + + this.getField("vorname").strokeColor = color.black; + this.getField("name").strokeColor = color.black; + this.getField("abt").strokeColor = color.black; + this.getField("zeit").strokeColor = color.black; + this.getField("von").strokeColor = color.black; + this.getField("bis").strokeColor = color.black; + this.getField("ht").strokeColor = color.black; + this.getField("e1").strokeColor = color.black; + this.getField("e2").strokeColor = color.black; + + this.getField("vorname").textFont = font.Helv; + this.getField("name").textFont = font.Helv; + this.getField("abt").textFont = font.Helv; + this.getField("zeit").textFont = font.Helv; + this.getField("von").textFont = font.Helv; + this.getField("bis").textFont = font.Helv; +} + +function colorsScreen() +{ + + var newcolor = [ "RGB", 0.65, 0.79, 0.94]; + this.getField("vorname").fillColor = newcolor; + this.getField("name").fillColor = newcolor; + this.getField("abt").fillColor = newcolor; + this.getField("zeit").fillColor = newcolor; + this.getField("von").fillColor = newcolor; + this.getField("bis").fillColor = newcolor; + this.getField("ht").fillColor = newcolor; + this.getField("e1").fillColor = newcolor; + this.getField("e2").fillColor = newcolor; + + this.getField("vorname").strokeColor = newcolor; + this.getField("name").strokeColor = newcolor; + this.getField("abt").strokeColor = newcolor; + this.getField("zeit").strokeColor = newcolor; + this.getField("von").strokeColor = newcolor; + this.getField("bis").strokeColor = newcolor; + this.getField("ht").strokeColor = newcolor; + this.getField("e1").strokeColor = newcolor; + this.getField("e2").strokeColor = newcolor; + + this.getField("vorname").textFont = font.HelvB; + this.getField("name").textFont = font.HelvB; + this.getField("abt").textFont = font.HelvB; + this.getField("zeit").textFont = font.HelvB; + this.getField("von").textFont = font.HelvB; + this.getField("bis").textFont = font.HelvB; +} + +function willPrint() +{ + this.delay = true; + colorsPrinting(); + this.delay = false; +} + +function didPrint() +{ + this.delay = true; + colorsScreen(); + this.delay = false; +} + +// function to run when opening the document +function myFirstJavaScriptFunction() +{ + if(!done) { + done = 1; + this.delay = true; + colorsScreen(); + this.getField("abt").currentValueIndices = 0; + this.getField("zeit").currentValueIndices = 0; + this.getField("vorname").setFocus(); + this.delay = false; + } +} +\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\"{u}ssels} +\begin{Form} +\begin{tabular}{|rl|} +\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Mitarbeiter}}\\ +&\\*[-0.9em]\textforlabel{vn}{Vorname:}&% +\TextField[name=vorname,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{nn}{Name:}&% +\TextField[name=name,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{ab}{Abteilung:}&% +\ChoiceMenu[name=abt,width=20em,popdown=true,value=v,% +bordercolor={0.65 0.79 0.94}]{}{% +Verkauf=v,Fertigung=f,Service=s}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zeitdauer}}\\ +&\\*[-0.9em]\textforlabel{z}{Zeitraum:}&% +\ChoiceMenu[name=zeit,width=20em,popdown=true,value=u,% +bordercolor={0.65 0.79 0.94}]{}{% +unbefristet=u,befristet=b}\\ +&\\*[-0.9em]\textforlabel{v}{von:}&% +\TextField[name=von,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{b}{bis:}&% +\TextField[name=bis,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{% +\textbf{Zu schlie\ss{}ende T\"{u}ren}}\\ +&\\*[-0.9em]\textforlabel{th}{Haust\"{u}r:}&% +\CheckBox[name=ht,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t1}{Etage 1:}&% +\CheckBox[name=e1,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t2}{Etage 2:}&% +\CheckBox[name=e2,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\ +\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0010.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0010.tex new file mode 100644 index 00000000000..9bdbfe24520 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0010.tex @@ -0,0 +1,193 @@ +\documentclass[ngerman,a4paper]{scrartcl} +\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} +\immediate\pdfobj { +<< + /WP << /S /JavaScript /JS (willPrint();) >> + /DP << /S /JavaScript /JS (didPrint();) >> +>> +} +\pdfcatalog{/AA \the\pdflastobj\space 0 R} +\begin{insDLJS}[exaaae]{exaaae}{JavaScript auf Document Level} + +// indicate that the function was not yet run +var done = 0; + +function colorsPrinting() +{ + this.getField("vorname").fillColor = color.white; + this.getField("name").fillColor = color.white; + this.getField("abt").fillColor = color.white; + this.getField("zeit").fillColor = color.white; + this.getField("von").fillColor = color.white; + this.getField("bis").fillColor = color.white; + this.getField("ht").fillColor = color.white; + this.getField("e1").fillColor = color.white; + this.getField("e2").fillColor = color.white; + + this.getField("vorname").strokeColor = color.black; + this.getField("name").strokeColor = color.black; + this.getField("abt").strokeColor = color.black; + this.getField("zeit").strokeColor = color.black; + this.getField("von").strokeColor = color.black; + this.getField("bis").strokeColor = color.black; + this.getField("ht").strokeColor = color.black; + this.getField("e1").strokeColor = color.black; + this.getField("e2").strokeColor = color.black; + + this.getField("vorname").textFont = font.Helv; + this.getField("name").textFont = font.Helv; + this.getField("abt").textFont = font.Helv; + this.getField("zeit").textFont = font.Helv; + this.getField("von").textFont = font.Helv; + this.getField("bis").textFont = font.Helv; + this.getField("von").textColor = color.black; + this.getField("bis").textColor = color.black; +} + +function colorsScreen() +{ + + var newcolor = [ "RGB", 0.65, 0.79, 0.94]; + this.getField("vorname").fillColor = newcolor; + this.getField("name").fillColor = newcolor; + this.getField("abt").fillColor = newcolor; + this.getField("zeit").fillColor = newcolor; + this.getField("von").fillColor = newcolor; + this.getField("bis").fillColor = newcolor; + this.getField("ht").fillColor = newcolor; + this.getField("e1").fillColor = newcolor; + this.getField("e2").fillColor = newcolor; + + this.getField("vorname").strokeColor = newcolor; + this.getField("name").strokeColor = newcolor; + this.getField("abt").strokeColor = newcolor; + this.getField("zeit").strokeColor = newcolor; + this.getField("von").strokeColor = newcolor; + this.getField("bis").strokeColor = newcolor; + this.getField("ht").strokeColor = newcolor; + this.getField("e1").strokeColor = newcolor; + this.getField("e2").strokeColor = newcolor; + + this.getField("vorname").textFont = font.HelvB; + this.getField("name").textFont = font.HelvB; + this.getField("abt").textFont = font.HelvB; + this.getField("zeit").textFont = font.HelvB; + this.getField("von").textFont = font.HelvB; + this.getField("von").textColor = color.black; + this.getField("bis").textColor = color.black; + this.getField("bis").textFont = font.HelvB; +} + +function validateTime() +{ + this.delay = true; + if((event.value == "u") || (event.value == "unbefristet")) { + this.getField("von").display = display.hidden; + this.getField("bis").display = display.hidden; + } else { + this.getField("von").display = display.visible; + this.getField("bis").display = display.visible; + this.getField("von").setFocus(); + } + this.delay = false; +} + +function willPrint() +{ + this.delay = true; + colorsPrinting(); + this.delay = false; +} + +function didPrint() +{ + this.delay = true; + colorsScreen(); + this.delay = false; +} + +// function to run when opening the document +function myFirstJavaScriptFunction() +{ + if(!done) { + done = 1; + this.delay = true; + colorsScreen(); + this.getField("abt").currentValueIndices = 0; + this.getField("zeit").currentValueIndices = 0; + this.getField("vorname").setFocus(); + this.delay = false; + } +} +\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\"{u}ssels} +\begin{Form} +\begin{tabular}{|rl|} +\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Mitarbeiter}}\\ +&\\*[-0.9em]\textforlabel{vn}{Vorname:}&% +\TextField[name=vorname,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{nn}{Name:}&% +\TextField[name=name,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{ab}{Abteilung:}&% +\ChoiceMenu[name=abt,width=20em,popdown=true,value=v,% +bordercolor={0.65 0.79 0.94}]{}{% +Verkauf=v,Fertigung=f,Service=s}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zeitdauer}}\\ +&\\*[-0.9em]\textforlabel{z}{Zeitraum:}&% +\ChoiceMenu[name=zeit,width=20em,popdown=true,value=u,% +validate={validateTime();},% +bordercolor={0.65 0.79 0.94}]{}{% +unbefristet=u,befristet=b}\\ +&\\*[-0.9em]\textforlabel{v}{von:}&% +\TextField[name=von,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{b}{bis:}&% +\TextField[name=bis,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{% +\textbf{Zu schlie\ss{}ende T\"{u}ren}}\\ +&\\*[-0.9em]\textforlabel{th}{Haust\"{u}r:}&% +\CheckBox[name=ht,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t1}{Etage 1:}&% +\CheckBox[name=e1,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t2}{Etage 2:}&% +\CheckBox[name=e2,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\ +\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0011.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0011.tex new file mode 100644 index 00000000000..3ed89912e96 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0011.tex @@ -0,0 +1,194 @@ +\documentclass[ngerman,a4paper]{scrartcl} +\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} +\immediate\pdfobj { +<< + /WP << /S /JavaScript /JS (willPrint();) >> + /DP << /S /JavaScript /JS (didPrint();) >> +>> +} +\pdfcatalog{/AA \the\pdflastobj\space 0 R} +\begin{insDLJS}[exaaae]{exaaae}{JavaScript auf Document Level} + +// indicate that the function was not yet run +var done = 0; + +function colorsPrinting() +{ + this.getField("vorname").fillColor = color.white; + this.getField("name").fillColor = color.white; + this.getField("abt").fillColor = color.white; + this.getField("zeit").fillColor = color.white; + this.getField("von").fillColor = color.white; + this.getField("bis").fillColor = color.white; + this.getField("ht").fillColor = color.white; + this.getField("e1").fillColor = color.white; + this.getField("e2").fillColor = color.white; + + this.getField("vorname").strokeColor = color.black; + this.getField("name").strokeColor = color.black; + this.getField("abt").strokeColor = color.black; + this.getField("zeit").strokeColor = color.black; + this.getField("von").strokeColor = color.black; + this.getField("bis").strokeColor = color.black; + this.getField("ht").strokeColor = color.black; + this.getField("e1").strokeColor = color.black; + this.getField("e2").strokeColor = color.black; + + this.getField("vorname").textFont = font.Helv; + this.getField("name").textFont = font.Helv; + this.getField("abt").textFont = font.Helv; + this.getField("zeit").textFont = font.Helv; + this.getField("von").textFont = font.Helv; + this.getField("bis").textFont = font.Helv; + this.getField("von").textColor = color.black; + this.getField("bis").textColor = color.black; +} + +function colorsScreen() +{ + + var newcolor = [ "RGB", 0.65, 0.79, 0.94]; + this.getField("vorname").fillColor = newcolor; + this.getField("name").fillColor = newcolor; + this.getField("abt").fillColor = newcolor; + this.getField("zeit").fillColor = newcolor; + this.getField("von").fillColor = newcolor; + this.getField("bis").fillColor = newcolor; + this.getField("ht").fillColor = newcolor; + this.getField("e1").fillColor = newcolor; + this.getField("e2").fillColor = newcolor; + + this.getField("vorname").strokeColor = newcolor; + this.getField("name").strokeColor = newcolor; + this.getField("abt").strokeColor = newcolor; + this.getField("zeit").strokeColor = newcolor; + this.getField("von").strokeColor = newcolor; + this.getField("bis").strokeColor = newcolor; + this.getField("ht").strokeColor = newcolor; + this.getField("e1").strokeColor = newcolor; + this.getField("e2").strokeColor = newcolor; + + this.getField("vorname").textFont = font.HelvB; + this.getField("name").textFont = font.HelvB; + this.getField("abt").textFont = font.HelvB; + this.getField("zeit").textFont = font.HelvB; + this.getField("von").textFont = font.HelvB; + this.getField("von").textColor = color.black; + this.getField("bis").textColor = color.black; + this.getField("bis").textFont = font.HelvB; +} + +function validateTime() +{ + this.delay = true; + if((event.value == "u") || (event.value == "unbefristet")) { + this.getField("von").display = display.hidden; + this.getField("bis").display = display.hidden; + } else { + this.getField("von").display = display.visible; + this.getField("bis").display = display.visible; + this.getField("von").setFocus(); + } + this.delay = false; +} + +function willPrint() +{ + this.delay = true; + colorsPrinting(); + this.delay = false; +} + +function didPrint() +{ + this.delay = true; + colorsScreen(); + this.delay = false; +} + +// function to run when opening the document +function myFirstJavaScriptFunction() +{ + if(!done) { + done = 1; + this.delay = true; + colorsScreen(); + this.getField("abt").currentValueIndices = 0; + this.getField("abt").editable = true; + this.getField("zeit").currentValueIndices = 0; + this.getField("vorname").setFocus(); + this.delay = false; + } +} +\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\"{u}ssels} +\begin{Form} +\begin{tabular}{|rl|} +\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Mitarbeiter}}\\ +&\\*[-0.9em]\textforlabel{vn}{Vorname:}&% +\TextField[name=vorname,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{nn}{Name:}&% +\TextField[name=name,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{ab}{Abteilung:}&% +\ChoiceMenu[name=abt,width=20em,popdown=true,combo=true,value=v,% +bordercolor={0.65 0.79 0.94}]{}{% +Verkauf=v,Fertigung=f,Service=s}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zeitdauer}}\\ +&\\*[-0.9em]\textforlabel{z}{Zeitraum:}&% +\ChoiceMenu[name=zeit,width=20em,popdown=true,value=u,% +validate={validateTime();},% +bordercolor={0.65 0.79 0.94}]{}{% +unbefristet=u,befristet=b}\\ +&\\*[-0.9em]\textforlabel{v}{von:}&% +\TextField[name=von,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{b}{bis:}&% +\TextField[name=bis,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{% +\textbf{Zu schlie\ss{}ende T\"{u}ren}}\\ +&\\*[-0.9em]\textforlabel{th}{Haust\"{u}r:}&% +\CheckBox[name=ht,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t1}{Etage 1:}&% +\CheckBox[name=e1,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t2}{Etage 2:}&% +\CheckBox[name=e2,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\ +\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0012.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0012.tex new file mode 100644 index 00000000000..d871e759316 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0012.tex @@ -0,0 +1,236 @@ +\documentclass[ngerman,a4paper]{scrartcl} +\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} +\immediate\pdfobj { +<< + /WP << /S /JavaScript /JS (willPrint();) >> + /DP << /S /JavaScript /JS (didPrint();) >> +>> +} +\pdfcatalog{/AA \the\pdflastobj\space 0 R} +\begin{insDLJS}[exaaae]{exaaae}{JavaScript auf Document Level} + +// indicate that the function was not yet run +var done = 0; + +function colorsPrinting() +{ + this.getField("vorname").fillColor = color.white; + this.getField("name").fillColor = color.white; + this.getField("abt").fillColor = color.white; + this.getField("zeit").fillColor = color.white; + this.getField("von").fillColor = color.white; + this.getField("bis").fillColor = color.white; + this.getField("ht").fillColor = color.white; + this.getField("e1").fillColor = color.white; + this.getField("e2").fillColor = color.white; + + this.getField("vorname").strokeColor = color.black; + this.getField("name").strokeColor = color.black; + this.getField("abt").strokeColor = color.black; + this.getField("zeit").strokeColor = color.black; + this.getField("von").strokeColor = color.black; + this.getField("bis").strokeColor = color.black; + this.getField("ht").strokeColor = color.black; + this.getField("e1").strokeColor = color.black; + this.getField("e2").strokeColor = color.black; + + this.getField("vorname").textFont = font.Helv; + this.getField("name").textFont = font.Helv; + this.getField("abt").textFont = font.Helv; + this.getField("zeit").textFont = font.Helv; + this.getField("von").textFont = font.Helv; + this.getField("bis").textFont = font.Helv; + this.getField("von").textColor = color.black; + this.getField("bis").textColor = color.black; +} + +function colorsScreen() +{ + + var newcolor = [ "RGB", 0.65, 0.79, 0.94]; + this.getField("vorname").fillColor = newcolor; + this.getField("name").fillColor = newcolor; + this.getField("abt").fillColor = newcolor; + this.getField("zeit").fillColor = newcolor; + this.getField("von").fillColor = newcolor; + this.getField("bis").fillColor = newcolor; + this.getField("ht").fillColor = newcolor; + this.getField("e1").fillColor = newcolor; + this.getField("e2").fillColor = newcolor; + + this.getField("vorname").strokeColor = newcolor; + this.getField("name").strokeColor = newcolor; + this.getField("abt").strokeColor = newcolor; + this.getField("zeit").strokeColor = newcolor; + this.getField("von").strokeColor = newcolor; + this.getField("bis").strokeColor = newcolor; + this.getField("ht").strokeColor = newcolor; + this.getField("e1").strokeColor = newcolor; + this.getField("e2").strokeColor = newcolor; + + this.getField("vorname").textFont = font.HelvB; + this.getField("name").textFont = font.HelvB; + this.getField("abt").textFont = font.HelvB; + this.getField("zeit").textFont = font.HelvB; + this.getField("von").textFont = font.HelvB; + this.getField("von").textColor = color.black; + this.getField("bis").textColor = color.black; + this.getField("bis").textFont = font.HelvB; +} + +function validateTime() +{ + this.delay = true; + if((event.value == "u") || (event.value == "unbefristet")) { + this.getField("von").display = display.hidden; + this.getField("bis").display = display.hidden; + } else { + this.getField("von").display = display.visible; + this.getField("bis").display = display.visible; + this.getField("von").setFocus(); + } + this.delay = false; +} + +function willPrint() +{ + this.delay = true; + colorsPrinting(); + this.delay = false; +} + +function didPrint() +{ + this.delay = true; + colorsScreen(); + this.delay = false; +} + +// function to run when opening the document +function myFirstJavaScriptFunction() +{ + if(!done) { + done = 1; + this.delay = true; + colorsScreen(); + this.getField("abt").currentValueIndices = 0; + this.getField("abt").editable = true; + this.getField("zeit").currentValueIndices = 0; + this.getField("vorname").setFocus(); + this.delay = false; + } +} +\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\"{u}ssels} +\begin{Form} +\begin{tabular}{|rl|} +\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Mitarbeiter}}\\ +&\\*[-0.9em]\textforlabel{vn}{Vorname:}&% +\TextField[name=vorname,width=20em,% +bordercolor={0.65 0.79 0.94}]{}~\pdfannot width 20pt { + /Subtype /Text + /T (Vorname) + /C [0.65 0.79 0.94] + /Name /Help + /Contents (Bitte geben Sie Ihren Vornamen in das Textfeld ein.) +}\(\qquad\qquad\)\\ +&\\*[-0.9em]\textforlabel{nn}{Name:}&% +\TextField[name=name,width=20em,% +bordercolor={0.65 0.79 0.94}]{}~\pdfannot width 20pt { + /Subtype /Text + /T (Name) + /C [0.65 0.79 0.94] + /Name /Help + /Contents (Bitte geben Sie Ihren Familiennamen in das Textfeld ein.) +}\(\qquad\qquad\)\\ +&\\*[-0.9em]\textforlabel{ab}{Abteilung:}&% +\ChoiceMenu[name=abt,width=20em,popdown=true,combo=true,value=v,% +bordercolor={0.65 0.79 0.94}]{}{% +Verkauf=v,Fertigung=f,Service=s}~\pdfannot width 20pt { + /Subtype /Text + /T (Abteilung) + /C [0.65 0.79 0.94] + /Name /Help + /Contents (Bitte wählen Sie Ihre Abteilung aus. Falls Ihre Abteilung noch nicht in der Liste enthalten isi, können Sie den Namen Ihrer Abteilung auch eingeben.) +}\(\qquad\qquad\)\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zeitdauer}}\\ +&\\*[-0.9em]\textforlabel{z}{Zeitraum:}&% +\ChoiceMenu[name=zeit,width=20em,popdown=true,value=u,% +validate={validateTime();},% +bordercolor={0.65 0.79 0.94}]{}{% +unbefristet=u,befristet=b}~\pdfannot width 20pt { + /Subtype /Text + /T (Zeitraum) + /C [0.65 0.79 0.94] + /Name /Help + /Contents (Bitte wählen Sie aus, ob der Schlüssel befristet oder unbefristet ausgegeben werden soll. Für eine befristete Ausgabe müssen Beginn und Ende des Zeitraumes angegeben werden.) +}\(\qquad\qquad\)\\ +&\\*[-0.9em]\textforlabel{v}{von:}&% +\TextField[name=von,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{b}{bis:}&% +\TextField[name=bis,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{% +\textbf{Zu schlie\ss{}ende T\"{u}ren}}\\ +&\\*[-0.9em]\textforlabel{th}{Haust\"{u}r:}&% +\CheckBox[name=ht,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}~\pdfannot width 20pt { + /Subtype /Text + /T (Haustür) + /C [0.65 0.79 0.94] + /Name /Help + /Contents (Bitte aktivieren Sie diese Chechbox, um einen Haustürschlüssel zu erhalten.) +}\(\qquad\qquad\)\\ +&\\*[-0.9em]\textforlabel{t1}{Etage 1:}&% +\CheckBox[name=e1,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}~\pdfannot width 20pt { + /Subtype /Text + /T (1. Etage) + /C [0.65 0.79 0.94] + /Name /Help + /Contents (Bitte aktivieren Sie diese Checkbox, um einen Schlüssel für die erste Etage zu erhalten.) +}\(\qquad\qquad\)\\ +&\\*[-0.9em]\textforlabel{t2}{Etage 2:}&% +\CheckBox[name=e2,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}~\pdfannot width 20pt { + /Subtype /Text + /T (2. Etage) + /C [0.65 0.79 0.94] + /Name /Help + /Contents (Bitte aktivieren Sie diese Checkbox, um einen Schlüssel für die zweite Etage zu erhalten.) +}\(\qquad\qquad\)\\ +&\\ +\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0013.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0013.tex new file mode 100644 index 00000000000..c8f5e9fd336 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0013.tex @@ -0,0 +1,204 @@ +\documentclass[ngerman,a4paper]{scrartcl} +\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} +\immediate\pdfobj { +<< + /WP << /S /JavaScript /JS (willPrint();) >> + /DP << /S /JavaScript /JS (didPrint();) >> +>> +} +\pdfcatalog{/AA \the\pdflastobj\space 0 R} +\begin{insDLJS}[exaaae]{exaaae}{JavaScript auf Document Level} + +// indicate that the function was not yet run +var done = 0; + +function colorsPrinting() +{ + this.getField("vorname").fillColor = color.white; + this.getField("name").fillColor = color.white; + this.getField("abt").fillColor = color.white; + this.getField("zeit").fillColor = color.white; + this.getField("von").fillColor = color.white; + this.getField("bis").fillColor = color.white; + this.getField("ht").fillColor = color.white; + this.getField("e1").fillColor = color.white; + this.getField("e2").fillColor = color.white; + + this.getField("vorname").strokeColor = color.black; + this.getField("name").strokeColor = color.black; + this.getField("abt").strokeColor = color.black; + this.getField("zeit").strokeColor = color.black; + this.getField("von").strokeColor = color.black; + this.getField("bis").strokeColor = color.black; + this.getField("ht").strokeColor = color.black; + this.getField("e1").strokeColor = color.black; + this.getField("e2").strokeColor = color.black; + + this.getField("vorname").textFont = font.Helv; + this.getField("name").textFont = font.Helv; + this.getField("abt").textFont = font.Helv; + this.getField("zeit").textFont = font.Helv; + this.getField("von").textFont = font.Helv; + this.getField("bis").textFont = font.Helv; + this.getField("von").textColor = color.black; + this.getField("bis").textColor = color.black; +} + +function colorsScreen() +{ + + var newcolor = [ "RGB", 0.65, 0.79, 0.94]; + this.getField("vorname").fillColor = newcolor; + this.getField("name").fillColor = newcolor; + this.getField("abt").fillColor = newcolor; + this.getField("zeit").fillColor = newcolor; + this.getField("von").fillColor = newcolor; + this.getField("bis").fillColor = newcolor; + this.getField("ht").fillColor = newcolor; + this.getField("e1").fillColor = newcolor; + this.getField("e2").fillColor = newcolor; + + this.getField("vorname").strokeColor = newcolor; + this.getField("name").strokeColor = newcolor; + this.getField("abt").strokeColor = newcolor; + this.getField("zeit").strokeColor = newcolor; + this.getField("von").strokeColor = newcolor; + this.getField("bis").strokeColor = newcolor; + this.getField("ht").strokeColor = newcolor; + this.getField("e1").strokeColor = newcolor; + this.getField("e2").strokeColor = newcolor; + + this.getField("vorname").textFont = font.HelvB; + this.getField("name").textFont = font.HelvB; + this.getField("abt").textFont = font.HelvB; + this.getField("zeit").textFont = font.HelvB; + this.getField("von").textFont = font.HelvB; + this.getField("von").textColor = color.black; + this.getField("bis").textColor = color.black; + this.getField("bis").textFont = font.HelvB; +} + +function validateTime() +{ + this.delay = true; + if((event.value == "u") || (event.value == "unbefristet")) { + this.getField("von").display = display.hidden; + this.getField("bis").display = display.hidden; + } else { + this.getField("von").display = display.visible; + this.getField("bis").display = display.visible; + this.getField("von").setFocus(); + } + this.delay = false; +} + +function willPrint() +{ + this.delay = true; + colorsPrinting(); + this.delay = false; +} + +function didPrint() +{ + this.delay = true; + colorsScreen(); + this.delay = false; +} + +// function to run when opening the document +function myFirstJavaScriptFunction() +{ + if(!done) { + done = 1; + this.delay = true; + colorsScreen(); + this.getField("abt").currentValueIndices = 0; + this.getField("abt").editable = true; + this.getField("zeit").currentValueIndices = 0; + this.getField("vorname").setFocus(); + + this.getField("vorname").userName = "Bitte geben Sie Ihren Vornamen ein."; + this.getField("name").userName = "Bitte geben Sie Ihren Familiennamen ein."; + this.getField("abt").userName = "Bitte w\u00E4hlen Sie Ihre Abteilung aus bzw. geben Sie den Abteilungsnamen ein, falls er noch nicht in der Liste enthalten ist"; + this.getField("zeit").userName = "Bitte w\u00E4hlen Sie, ob die Schl\u00FCsselausgabe befristet oder unbefristet erfolgen soll."; + this.getField("von").userName = "Bitte geben Sie den Beginn des Zeitraumes an."; + this.getField("bis").userName = "Bitte geben Sie das Ende des Zeitraumes an."; + this.getField("ht").userName = "Bitte aktivieren Sie diese Checkbox, um einen Schl\u00FCssel f\u00FCr die Haust\u00FCr zu erhalten."; + this.getField("e1").userName = "Bitte aktivieren Sie diese Checkbox, um einen Schl\u00FCssel f\u00FCr die erste Etage zu erhalten."; + this.getField("e2").userName = "Bitte aktivieren Sie diese Checkbox, um einen Schl\u00FCssel f\u00FCr die zweite Etage zu erhalten."; + this.delay = false; + } +} +\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\"{u}ssels} +\begin{Form} +\begin{tabular}{|rl|} +\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Mitarbeiter}}\\ +&\\*[-0.9em]\textforlabel{vn}{Vorname:}&% +\TextField[name=vorname,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{nn}{Name:}&% +\TextField[name=name,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{ab}{Abteilung:}&% +\ChoiceMenu[name=abt,width=20em,popdown=true,combo=true,value=v,% +bordercolor={0.65 0.79 0.94}]{}{% +Verkauf=v,Fertigung=f,Service=s}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{\textbf{Zeitdauer}}\\ +&\\*[-0.9em]\textforlabel{z}{Zeitraum:}&% +\ChoiceMenu[name=zeit,width=20em,popdown=true,value=u,% +validate={validateTime();},% +bordercolor={0.65 0.79 0.94}]{}{% +unbefristet=u,befristet=b}\\ +&\\*[-0.9em]\textforlabel{v}{von:}&% +\TextField[name=von,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{b}{bis:}&% +\TextField[name=bis,width=10em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\hline +&\\*[-0.9em]\multicolumn{2}{|c|}{% +\textbf{Zu schlie\ss{}ende T\"{u}ren}}\\ +&\\*[-0.9em]\textforlabel{th}{Haust\"{u}r:}&% +\CheckBox[name=ht,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t1}{Etage 1:}&% +\CheckBox[name=e1,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{t2}{Etage 2:}&% +\CheckBox[name=e2,width=1.2em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\ +\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0101.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0101.tex new file mode 100644 index 00000000000..52004303d4b --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0101.tex @@ -0,0 +1,259 @@ +\documentclass[ngerman,a4paper]{scrartcl} +\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 Software},pdfsubject={Software}, + pdfauthor={ich}, + pdfpagemode=UseNone,pdfstartview=FitH, + pagebackref,pdfhighlight={/N} +]{hyperref} +\usepackage[pdftex]{insdljs} +\immediate\pdfobj { +<< + /WP << /S /JavaScript /JS (willPrint();) >> + /DP << /S /JavaScript /JS (didPrint();) >> +>> +} +\pdfcatalog{/AA \the\pdflastobj\space 0 R} +\begin{insDLJS}[exaaba]{exaaba}{JavaScript auf Document Level} + +// indicate that the function was not yet run +var done = 0; + +function colorsPrinting() +{ + this.getField("vorname").fillColor = color.white; + this.getField("vorname").strokeColor = color.black; + this.getField("vorname").textFont = font.Helv; + this.getField("name").fillColor = color.white; + this.getField("name").strokeColor = color.black; + this.getField("name").textFont = font.Helv; + this.getField("inventory").fillColor = color.white; + this.getField("inventory").strokeColor = color.black; + this.getField("inventory").textFont = font.Helv; + this.getField("sw01").fillColor = color.white; + this.getField("sw01").strokeColor = color.black; + this.getField("sw01").textFont = font.Helv; + this.getField("sw02").fillColor = color.white; + this.getField("sw02").strokeColor = color.black; + this.getField("sw02").textFont = font.Helv; + this.getField("sw03").fillColor = color.white; + this.getField("sw03").strokeColor = color.black; + this.getField("sw03").textFont = font.Helv; + this.getField("sw04").fillColor = color.white; + this.getField("sw04").strokeColor = color.black; + this.getField("sw04").textFont = font.Helv; + this.getField("sw05").fillColor = color.white; + this.getField("sw05").strokeColor = color.black; + this.getField("sw05").textFont = font.Helv; + this.getField("sw06").fillColor = color.white; + this.getField("sw06").strokeColor = color.black; + this.getField("sw06").textFont = font.Helv; + this.getField("sw07").fillColor = color.white; + this.getField("sw07").strokeColor = color.black; + this.getField("sw07").textFont = font.Helv; + this.getField("sw08").fillColor = color.white; + this.getField("sw08").strokeColor = color.black; + this.getField("sw08").textFont = font.Helv; + this.getField("sw09").fillColor = color.white; + this.getField("sw09").strokeColor = color.black; + this.getField("sw09").textFont = font.Helv; + this.getField("sw10").fillColor = color.white; + this.getField("sw10").strokeColor = color.black; + this.getField("sw10").textFont = font.Helv; +} + +function colorsScreen() +{ + + var newcolor = [ "RGB", 0.65, 0.79, 0.94]; + this.getField("vorname").fillColor = newcolor; + this.getField("vorname").strokeColor = newcolor; + this.getField("vorname").textFont = font.HelvB; + this.getField("name").fillColor = newcolor; + this.getField("name").strokeColor = newcolor; + this.getField("name").textFont = font.HelvB; + this.getField("inventory").fillColor = newcolor; + this.getField("inventory").strokeColor = newcolor; + this.getField("inventory").textFont = font.HelvB; + this.getField("sw01").fillColor = newcolor; + this.getField("sw01").strokeColor = newcolor; + this.getField("sw01").textFont = font.HelvB; + this.getField("sw02").fillColor = newcolor; + this.getField("sw02").strokeColor = newcolor; + this.getField("sw02").textFont = font.HelvB; + this.getField("sw03").fillColor = newcolor; + this.getField("sw03").strokeColor = newcolor; + this.getField("sw03").textFont = font.HelvB; + this.getField("sw04").fillColor = newcolor; + this.getField("sw04").strokeColor = newcolor; + this.getField("sw04").textFont = font.HelvB; + this.getField("sw05").fillColor = newcolor; + this.getField("sw05").strokeColor = newcolor; + this.getField("sw05").textFont = font.HelvB; + this.getField("sw06").fillColor = newcolor; + this.getField("sw06").strokeColor = newcolor; + this.getField("sw06").textFont = font.HelvB; + this.getField("sw07").fillColor = newcolor; + this.getField("sw07").strokeColor = newcolor; + this.getField("sw07").textFont = font.HelvB; + this.getField("sw08").fillColor = newcolor; + this.getField("sw08").strokeColor = newcolor; + this.getField("sw08").textFont = font.HelvB; + this.getField("sw09").fillColor = newcolor; + this.getField("sw09").strokeColor = newcolor; + this.getField("sw09").textFont = font.HelvB; + this.getField("sw10").fillColor = newcolor; + this.getField("sw10").strokeColor = newcolor; + this.getField("sw10").textFont = font.HelvB; +} + +function willPrint() +{ + this.delay = true; + colorsPrinting(); + this.delay = false; +} + +function didPrint() +{ + this.delay = true; + colorsScreen(); + this.delay = false; +} + +var softwareAuswahl = [ + [ "", ""], + [ "Betriebssystem", "os" ], + [ "Textverarbeitung", "tp" ], + [ "Tabellenkalkulation", "sc" ], + [ "Präsentationsprogramm", "pp" ], + [ "E-Mail-Client", "mc" ], + [ "Web browser", "wb" ], + [ "Mathematik-Software", "ms" ], + [ "PDF-Anzeigeprogramm", "pv" ] +]; + +// function to run when opening the document +function myFirstJavaScriptFunction() +{ + if(!done) { + done = 1; + this.delay = true; + colorsScreen(); + this.getField("sw01").setItems(softwareAuswahl); + this.getField("sw01").currentValueIndices = 0; + this.getField("sw01").editable = true; + this.getField("sw02").setItems(softwareAuswahl); + this.getField("sw02").currentValueIndices = 0; + this.getField("sw02").editable = true; + this.getField("sw03").setItems(softwareAuswahl); + this.getField("sw03").currentValueIndices = 0; + this.getField("sw03").editable = true; + this.getField("sw04").setItems(softwareAuswahl); + this.getField("sw04").currentValueIndices = 0; + this.getField("sw04").editable = true; + this.getField("sw05").setItems(softwareAuswahl); + this.getField("sw05").currentValueIndices = 0; + this.getField("sw05").editable = true; + this.getField("sw06").setItems(softwareAuswahl); + this.getField("sw06").currentValueIndices = 0; + this.getField("sw06").editable = true; + this.getField("sw07").setItems(softwareAuswahl); + this.getField("sw07").currentValueIndices = 0; + this.getField("sw07").editable = true; + this.getField("sw08").setItems(softwareAuswahl); + this.getField("sw08").currentValueIndices = 0; + this.getField("sw08").editable = true; + this.getField("sw09").setItems(softwareAuswahl); + this.getField("sw09").currentValueIndices = 0; + this.getField("sw09").editable = true; + this.getField("sw10").setItems(softwareAuswahl); + this.getField("sw10").currentValueIndices = 0; + this.getField("sw10").editable = true; + this.getField("vorname").setFocus(); + this.delay = false; + } +} +\end{insDLJS} +\OpenAction{/S /JavaScript /JS (myFirstJavaScriptFunction();)} +\newcommand{\textforlabel}[2]{% +\TextField[name={#1},value={#2},width=9em,align=2,% +bordercolor={1 1 1},readonly=true]{}% +} +\begin{document} +\section*{Anforderung von Software-Lizenzen und -installationen} +\begin{Form} +\begin{tabular}{|rr|} +\hline +\multicolumn{2}{|c|}{}\\*[-0.9em] +\multicolumn{2}{|c|}{\textbf{Systemverantwortlicher}}\\ +&\\*[-0.9em]\textforlabel{l01}{Vorname:}&\TextField[% +name=vorname,width=20em,bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\textforlabel{l02}{Name:}&\TextField[% +name=name,width=20em,bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\hline +\multicolumn{2}{|c|}{}\\*[-0.9em] +\multicolumn{2}{|c|}{\textbf{PC}}\\ +&\\*[-0.9em]\textforlabel{l03}{Inventarnummer:}% +&\TextField[name=inventory,width=20em,% +bordercolor={0.65 0.79 0.94}]{}\\ +&\\*[-0.9em]\hline +\multicolumn{2}{|c|}{}\\*[-0.9em] +\multicolumn{2}{|c|}{\textbf{Ben\"{o}tigte Software}}\\ +\multicolumn{2}{|c|}{}\\*[-0.9em] +\multicolumn{2}{|r|}{\ChoiceMenu[name=sw01,width=30em,% +popdown=true,combo=true,value={},% +bordercolor={0.65 0.79 0.94}]{}{}}\\ +\multicolumn{2}{|c|}{}\\*[-0.9em] +\multicolumn{2}{|r|}{\ChoiceMenu[name=sw02,width=30em,% +popdown=true,combo=true,value={},% +bordercolor={0.65 0.79 0.94}]{}{}}\\ +\multicolumn{2}{|c|}{}\\*[-0.9em] +\multicolumn{2}{|r|}{\ChoiceMenu[name=sw03,width=30em,% +popdown=true,combo=true,value={},% +bordercolor={0.65 0.79 0.94}]{}{}}\\ +\multicolumn{2}{|c|}{}\\*[-0.9em] +\multicolumn{2}{|r|}{\ChoiceMenu[name=sw04,width=30em,% +popdown=true,combo=true,value={},% +bordercolor={0.65 0.79 0.94}]{}{}}\\ +\multicolumn{2}{|c|}{}\\*[-0.9em] +\multicolumn{2}{|r|}{\ChoiceMenu[name=sw05,width=30em,% +popdown=true,combo=true,value={},% +bordercolor={0.65 0.79 0.94}]{}{}}\\ +\multicolumn{2}{|c|}{}\\*[-0.9em] +\multicolumn{2}{|r|}{\ChoiceMenu[name=sw06,width=30em,% +popdown=true,combo=true,value={},% +bordercolor={0.65 0.79 0.94}]{}{}}\\ +\multicolumn{2}{|c|}{}\\*[-0.9em] +\multicolumn{2}{|r|}{\ChoiceMenu[name=sw07,width=30em,% +popdown=true,combo=true,value={},% +bordercolor={0.65 0.79 0.94}]{}{}}\\ +\multicolumn{2}{|c|}{}\\*[-0.9em] +\multicolumn{2}{|r|}{\ChoiceMenu[name=sw08,width=30em,% +popdown=true,combo=true,value={},% +bordercolor={0.65 0.79 0.94}]{}{}}\\ +\multicolumn{2}{|c|}{}\\*[-0.9em] +\multicolumn{2}{|r|}{\ChoiceMenu[name=sw09,width=30em,% +popdown=true,combo=true,value={},% +bordercolor={0.65 0.79 0.94}]{}{}}\\ +\multicolumn{2}{|c|}{}\\*[-0.9em] +\multicolumn{2}{|r|}{\ChoiceMenu[name=sw10,width=30em,% +popdown=true,combo=true,value={},% +bordercolor={0.65 0.79 0.94}]{}{}}\\ +\multicolumn{2}{|c|}{~}\\*\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0201.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0201.tex new file mode 100644 index 00000000000..06cb9eb0fa3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0201.tex @@ -0,0 +1,107 @@ +\documentclass{scrartcl} +\setcounter{secnumdepth}{0} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage{mathptmx} +\usepackage[scaled=.92]{helvet} +\usepackage{courier} +\setlength{\paperwidth}{5.2075in} +\setlength{\paperheight}{3.75in} +\renewcommand*{\familydefault}{phv} +\usepackage[pdftex,margin=0.5in]{geometry} +\usepackage{fancyhdr} +\lhead{Dicke Kohle GmbH}\chead{} +\rhead{Abteilung f\"{u}r Versprechungen} +\lfoot{}\cfoot{}\rfoot{} +\pagestyle{fancy} +\usepackage{graphicx} +\usepackage{color} +\usepackage[pdftex,pdfpagelayout=SinglePage,% +pdftitle={Anlageberechnung},pdfsubject={Formular}% +]{hyperref} +\definecolor{background}{rgb}{0.99,0.98,0.85} +\pagecolor{background} +\setlength{\parindent}{0.0cm} +\usepackage[pdftex]{insdljs} +\begin{insDLJS}[exaaca]{exaaca}{JavaScript functions} +var done = 0; + +function docOpen() +{ + if(!done) { + done = 1; + var newcolor = [ "RGB", 0.99, 0.98, 0.85]; + var borcolor = [ "RGB", 0.65, 0.79, 0.94] + this.getField("l01").fillColor = newcolor; + this.getField("l01").strokeColor = newcolor; + this.getField("l02").fillColor = newcolor; + this.getField("l02").strokeColor = newcolor; + this.getField("l03").fillColor = newcolor; + this.getField("l03").strokeColor = newcolor; + this.getField("l04").fillColor = newcolor; + this.getField("l04").strokeColor = newcolor; + this.getField("zeit").currentValueIndices = 0; + this.getField("zeit").fillColor = newcolor; + this.getField("summe").fillColor = newcolor; + this.getField("zins").fillColor = newcolor; + this.getField("ergebnis").fillColor = newcolor; + } +} + +function doCalculation() +{ + var summe = 0.0 + this.getField("summe").value; + var zins = 0.0 + this.getField("zins").value; + var zeit = 0 + this.getField("zeit").value; + var i, faktor, wert; + faktor = 1.0 + 0.01 * zins; + for(i = 0; i < zeit; i++) { + summe = summe * faktor; + } + wert = Math.round(100.0 * summe); + wert = 0.01 * wert; + wert = wert.toFixed(2); + wert = wert.toString(); + this.getField("ergebnis").value = wert; +} +\end{insDLJS} +\OpenAction{/S /JavaScript /JS (docOpen();)} +\newcommand{\textforlabel}[2]{% +\TextField[name={#1},value={#2},width=9em,align=2,% +bordercolor={0.99 0.98 0.85},% +fillcolor={0.99 0.98 0.85},readonly=true]{}% +} +\begin{document} +\begin{Form} +\begin{tabular}{|rl|} +\hline +\multicolumn{2}{|c|}{}\\*[-0.8em]\multicolumn{2}{|c|}{% +\textsc{E\,i\,n\,g\,a\,b\,e\,d\,a\,t\,e\,n}% +}\\ +&\\*[-0.8em]\textforlabel{l01}{Anlagesumme:}&\TextField[% +name=summe,width=10em,bordercolor={0.65 0.79 0.94}]{}% +~\texteuro\\ +&\\*[-0.8em]\textforlabel{l02}{Zinssatz:}&\TextField[% +name=zins,width=10em,bordercolor={0.65 0.79 0.94}]{}~\%\\ +&\\*[-0.8em]\textforlabel{l03}{Anlagezeitraum:}&% +\ChoiceMenu[name=zeit,popdown=true,bordercolor={0.65 0.79 0.94}% +]{}{{1}={1},{2}={2},{3}={3},{4}={4},{5}={5},% +{6}={6},{7}={7},{8}={8},{9}={9},{10}={10}}~Jahre\\ +&\\*[-0.8em]\hline +\multicolumn{2}{|c|}{}\\*[-0.8em] +\multicolumn{2}{|c|}{\textsc{B\,e\,r\,e\,c\,h\,n\,u\,n\,g}}\\ +\multicolumn{2}{|c|}{}\\*[-0.8em] +\multicolumn{2}{|c|}{\PushButton[name=start,% +onclick={doCalculation()},bordercolor={0.65 0.79 0.94},% +fillcolor={0.5 0.5 0.5}]{Start}}\\ +\multicolumn{2}{|c|}{}\\*[-0.8em]\hline +\multicolumn{2}{|c|}{}\\*[-0.8em] +\multicolumn{2}{|c|}{\textsc{A\,u\,s\,g\,a\,b\,e}}\\ +\multicolumn{2}{|c|}{}\\*[-0.8em]\textforlabel{l04}{% +Anlageergebnis:}&\TextField[name=ergebnis,width=10em,% +bordercolor={0 0 0},readonly=true]{}~\texteuro\\ +\multicolumn{2}{|c|}{}\\ +\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0202.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0202.tex new file mode 100644 index 00000000000..6c2f6898f15 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0202.tex @@ -0,0 +1,114 @@ +\documentclass{scrartcl} +\setcounter{secnumdepth}{0} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage{mathptmx} +\usepackage[scaled=.92]{helvet} +\usepackage{courier} +\setlength{\paperwidth}{5.2075in} +\setlength{\paperheight}{3.75in} +\renewcommand*{\familydefault}{phv} +\usepackage[pdftex,margin=0.5in]{geometry} +\usepackage{fancyhdr} +\lhead{Dicke Kohle GmbH}\chead{} +\rhead{Abteilung f\"{u}r Versprechungen} +\lfoot{}\cfoot{}\rfoot{} +\pagestyle{fancy} +\usepackage{graphicx} +\usepackage{color} +\usepackage[pdftex,pdfpagelayout=SinglePage,% +pdftitle={Anlageberechnung},pdfsubject={Formular}% +]{hyperref} +\definecolor{background}{rgb}{0.99,0.98,0.85} +\pagecolor{background} +\setlength{\parindent}{0.0cm} +\usepackage[pdftex]{insdljs} +\begin{insDLJS}[exaacb]{exaacb}{JavaScript functions} +var done = 0; + +function docOpen() +{ + if(!done) { + done = 1; + var newcolor = [ "RGB", 0.99, 0.98, 0.85]; + var borcolor = [ "RGB", 0.65, 0.79, 0.94] + this.getField("l01").fillColor = newcolor; + this.getField("l01").strokeColor = newcolor; + this.getField("l02").fillColor = newcolor; + this.getField("l02").strokeColor = newcolor; + this.getField("l03").fillColor = newcolor; + this.getField("l03").strokeColor = newcolor; + this.getField("l04").fillColor = newcolor; + this.getField("l04").strokeColor = newcolor; + this.getField("zeit").currentValueIndices = 0; + this.getField("zeit").fillColor = newcolor; + this.getField("summe").fillColor = newcolor; + this.getField("zins").fillColor = newcolor; + this.getField("ergebnis").fillColor = newcolor; + } +} + +function restrictDecimalDigits(s,n) +{ + var back = s; + return back; +} + +function doCalculation() +{ + var summe = 0.0 + this.getField("summe").value; + var zins = 0.0 + this.getField("zins").value; + var zeit = 0 + this.getField("zeit").value; + var i, faktor, wert; + faktor = 1.0 + 0.01 * zins; + for(i = 0; i < zeit; i++) { + summe = summe * faktor; + } + wert = Math.round(100.0 * summe); + wert = wert.toFixed(0); + wert = 0.01 * wert; + wert = wert.toString(); + wert = restrictDecimalDigits(wert, 2); + this.getField("ergebnis").value = wert; +} +\end{insDLJS} +\OpenAction{/S /JavaScript /JS (docOpen();)} +\newcommand{\textforlabel}[2]{% +\TextField[name={#1},value={#2},width=9em,align=2,% +bordercolor={0.99 0.98 0.85},% +fillcolor={0.99 0.98 0.85},readonly=true]{}% +} +\begin{document} +\begin{Form} +\begin{tabular}{|rl|} +\hline +\multicolumn{2}{|c|}{}\\*[-0.8em]\multicolumn{2}{|c|}{% +\textsc{E\,i\,n\,g\,a\,b\,e\,d\,a\,t\,e\,n}% +}\\ +&\\*[-0.8em]\textforlabel{l01}{Anlagesumme:}&\TextField[% +name=summe,width=10em,bordercolor={0.65 0.79 0.94}]{}% +~\texteuro\\ +&\\*[-0.8em]\textforlabel{l02}{Zinssatz:}&\TextField[% +name=zins,width=10em,bordercolor={0.65 0.79 0.94}]{}~\%\\ +&\\*[-0.8em]\textforlabel{l03}{Anlagezeitraum:}&% +\ChoiceMenu[name=zeit,popdown=true,bordercolor={0.65 0.79 0.94}% +]{}{{1}={1},{2}={2},{3}={3},{4}={4},{5}={5},% +{6}={6},{7}={7},{8}={8},{9}={9},{10}={10}}~Jahre\\ +&\\*[-0.8em]\hline +\multicolumn{2}{|c|}{}\\*[-0.8em] +\multicolumn{2}{|c|}{\textsc{B\,e\,r\,e\,c\,h\,n\,u\,n\,g}}\\ +\multicolumn{2}{|c|}{}\\*[-0.8em] +\multicolumn{2}{|c|}{\PushButton[name=start,% +onclick={doCalculation()},bordercolor={0.65 0.79 0.94},% +fillcolor={0.5 0.5 0.5}]{Start}}\\ +\multicolumn{2}{|c|}{}\\*[-0.8em]\hline +\multicolumn{2}{|c|}{}\\*[-0.8em] +\multicolumn{2}{|c|}{\textsc{A\,u\,s\,g\,a\,b\,e}}\\ +\multicolumn{2}{|c|}{}\\*[-0.8em]\textforlabel{l04}{% +Anlageergebnis:}&\TextField[name=ergebnis,width=10em,% +bordercolor={0 0 0}]{}~\texteuro\\ +\multicolumn{2}{|c|}{}\\ +\hline +\end{tabular} +\end{Form} +\end{document} diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0301.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0301.tex new file mode 100644 index 00000000000..940ab3a9b62 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-de/examples/ex0301.tex @@ -0,0 +1,60 @@ +\documentclass[ngerman,a4paper]{scrartcl} +\usepackage[latin1]{inputenc} +\usepackage{mathptmx} +\usepackage[scaled=.92]{helvet} +\usepackage{courier} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\renewcommand*{\familydefault}{phv} +\usepackage[left=25mm,top=25mm,bottom=10mm,right=10mm]{geometry} +\usepackage{fancyhdr} +\lhead{Test}\chead{}\rhead{inputenc und insdljs} +\lfoot{}\cfoot{}\rfoot{} +\pagestyle{fancy} +\usepackage{graphicx} +\usepackage{color} +\usepackage[ + pdftex,a4paper=true,colorlinks=true, + pdftitle={insdljs und inputenc},pdfsubject={Test}, + pdfauthor={ich}, + pdfpagemode=UseNone,pdfstartview=FitH, + pagebackref,pdfhighlight={/N} +]{hyperref} +\usepackage[pdftex]{insdljs} +\begin{insDLJS}[exaada]{exaada}{JavaScript auf Document Level} +// indicate that the function was not yet run +var done = 0; + +// text to show when file is opened +var theText = +"Test mit \u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00DF"; + +// function to run when opening the document +function myFirstJavaScriptFunction() +{ + if(!done) { + done = 1; + app.alert(theText); + } +} +\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{Test mit insdljs und inputenc} +Dies ist ein Test, ob eine Zusammenarbeit der Pakete insdljs +und inputenc möglich ist.\\ +Getestet werden die deutschen Umlaute und Ligaturen +\begin{itemize} +\item ä (ae) +\item ö (oe) +\item ü (ue) +\item Ä (Ae) +\item Ö (Oe) +\item Ü (Ue) +\item ß (sz) +\end{itemize} +\end{document} |