I have a PDF Form with a read-only calculated TextField. This PDF is generated from a Latex code using the hyperref package.
To illustrate my problem, let's use this MWE (from the pdftex and javascript forms with automatic calculations question) :
Result

Latex
\documentclass{article}
\usepackage{hyperref}[pdftex]
\begin{document}
\begin{Form}
\TextField[maxlen=40,align=2,height=10pt,width=45pt,name=alpha,default=5]{Alpha}
\bigskip
\TextField[maxlen=40,align=2,height=10pt,width=45pt,name=beta,default=4]{Beta}
\bigskip
\TextField[
maxlen=40,
calculate={%
var f_alpha = this.getField("alpha");
var f_beta = this.getField("beta");
event.value = f_alpha.value + f_beta.value;
},
align=2,height=10pt,width=45pt,name=gamma,readonly=true]{Gamma}
\end{Form}
\end{document}
My problem is that at startup, the Gamma value is not calculated (9 in our case). I have to change any field in the form for all JavaScript to update.
Is there a way for all javascript to be executed when the file is launched and not just when it is modified?