• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>>
27endobj
28% Forms
29{{object 4 0}} <<
30  /Fields [5 0 R]
31>>
32endobj
33% Fields
34{{object 5 0}} <<
35  /T (MyField)
36  /Type /Annot
37  /Subtype /Widget
38  /Rect [100 100 400 400]
39  /Kids [
40    6 0 R
41    7 0 R
42    8 0 R
43    9 0 R
44  ]
45>>
46endobj
47{{object 6 0}} <<
48  /FT /Tx
49  /Parent 5 0 R
50  /T (Sub_X)
51  /Type /Annot
52  /Subtype /Widget
53  /Rect [200 200 220 220]
54>>
55endobj
56{{object 7 0}} <<
57  /FT /Tx
58  /Parent 5 0 R
59  /T (Sub_A)
60  /Type /Annot
61  /Subtype /Widget
62  /Rect [220 220 240 240]
63>>
64endobj
65{{object 8 0}} <<
66  /FT /Tx
67  /Parent 5 0 R
68  /T (Sub_Z)
69  /Type /Annot
70  /Subtype /Widget
71  /Rect [240 240 260 260]
72>>
73endobj
74{{object 9 0}} <<
75  /FT /Tx
76  /Parent 5 0 R
77  /T (Sub_B)
78  /Type /Annot
79  /Subtype /Widget
80  /Rect [260 260 280 280]
81>>
82endobj
83% OpenAction action
84{{object 10 0}} <<
85  /Type /Action
86  /S /JavaScript
87  /JS 11 0 R
88>>
89endobj
90% JS program to exexute
91{{object 11 0}} <<
92>>
93stream
94function TestGetFieldWithDelay() {
95  try {
96    var ff = this.getField("MyField");
97    app.alert("field is " + ff.name);
98    app.alert("field value is '" + ff.value + "'");
99    ff.delay = true;
100    ff.value = "new value";
101    this.delay=true;
102    ff.delay = false;
103    app.alert("field value is '" + ff.value + "'");
104  } catch (e) {
105    app.alert("Unexpected error: " + e);
106  }
107}
108TestGetFieldWithDelay();
109endstream
110endobj
111{{xref}}
112trailer <<
113  /Root 1 0 R
114>>
115{{startxref}}
116%%EOF
117