summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/examples/ex0301.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/examples/ex0301.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/examples/ex0301.tex59
1 files changed, 59 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/examples/ex0301.tex b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/examples/ex0301.tex
new file mode 100644
index 00000000000..d0b26763c61
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pdf-forms-tutorial-en/examples/ex0301.tex
@@ -0,0 +1,59 @@
+\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 and 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 to show \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{Testing insdljs and inputenc}
+This is a test whether insdljs and inputenc can be used combined.
+The pop-up box should show the following german umlauts and ligatures:
+\begin{itemize}
+\item ä (ae)
+\item ö (oe)
+\item ü (ue)
+\item Ä (Ae)
+\item Ö (Oe)
+\item Ü (Ue)
+\item ß (sz)
+\end{itemize}
+\end{document}