\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}