1{{header}}
2{{object 1 0}} <<
3  /Type /Catalog
4  /Pages 2 0 R
5  /AcroForm 4 0 R
6  /OpenAction 10 0 R
7>>
8endobj
9{{object 2 0}} <<
10  /Type /Pages
11  /Count 1
12  /Kids [
13    3 0 R
14  ]
15>>
16endobj
17% Page number 0.
18{{object 3 0}} <<
19  /Type /Page
20  /Parent 2 0 R
21  /Resources <<
22    /Font <</F1 15 0 R>>
23  >>
24  /Contents [21 0 R]
25  /MediaBox [0 0 612 792]
26>>
27% Forms
28{{object 4 0}} <<
29  /Fields [5 0 R]
30>>
31% Field
32{{object 5 0}} <<
33 /FT /Tx
34 /T (MyField)
35 /Type /Annot
36 /Subtype /Widget
37 /Rect [100 200 150 250]
38>>
39% OpenAction action
40{{object 10 0}} <<
41  /Type /Action
42  /S /JavaScript
43  /JS 11 0 R
44>>
45endobj
46% JS program to exexute
47{{object 11 0}} <<
48>>
49stream
50function testField(x) {
51  var field = this.getField("MyField");
52  field.value = x;
53  var y = field.value;
54  app.alert("Answer for \"" + x + "\" is: " + typeof(y) + " " + y);
55}
56testField("");
57testField("goats");
58testField("b4");
59testField("b4.5");
60testField("4x");
61testField("4.5x");
62testField(4);
63testField("4");
64testField(" 4");
65testField("4 ");
66testField("                          4                                      ");
67testField("4 3 2 1");
68testField("-4");
69testField("23.00000001");
70testField("23.00000000000000001");
71testField(40000000000000000000000000);
72testField("40000000000000000000000000");
73testField("25,5");
74testField("1e+5");
75testField("1e5");
76testField("1e-5");
77testField("-1e-5");
78testField("1.2e5");
79testField(Infinity);
80testField("Infinity");
81testField("INFINITY");
82testField("INF");
83testField(NaN);
84testField("NaN");
85testField("NAN");
86testField("0x100");
87testField("0x100.1");
88testField("0x100,1");
89testField("0x100x1");
90testField("123x6");
91testField("123xy6");
92testField("123.y6");
93testField("1,000,000");
94testField("1.2.3");
95testField("1-3");
96testField("1+3");
97testField("1.-3");
98testField("1.+3");
99testField([1, 2, 3, 4]);
100testField("[1, 2, 3, 4]");
101testField({a: 1, b: 2});
102testField("{a: 1, b: 2}");
103testField(function(x) { return x+1; });
104testField("function(x) { return x+1; }");
105endstream
106endobj
107{{xref}}
108trailer <<
109  /Root 1 0 R
110>>
111{{startxref}}
112%%EOF
113