• 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>>
7endobj
8{{object 2 0}} <<
9  /Type /Pages
10  /Count 1
11  /Kids [
12    3 0 R
13  ]
14>>
15endobj
16% Page number 0.
17{{object 3 0}} <<
18  /Type /Page
19  /Parent 2 0 R
20  /Resources <<
21    /Font <</F1 20 0 R>>
22  >>
23  /Annots [ 5 0 R ]
24  /Contents [21 0 R]
25  /MediaBox [0 0 612 792]
26>>
27% Forms
28{{object 4 0}} <<
29  /Fields [
30    5 0 R
31    6 0 R
32    7 0 R
33  ]
34>>
35% Field with actions:
36% Cursor enter: E
37% Cursor exit: X
38% Mouse down: D
39% Mouse up: U
40% Focus: Fo
41% Blur: Bl
42{{object 5 0}} <<
43 /Type /Annot
44 /Subtype /Widget
45 /FT /Tx
46 /T (MyField)
47 /Rect [100 200 150 250]
48 /AA <<
49   /E 10 0 R
50   /X 11 0 R
51   /D 12 0 R
52   /U 13 0 R
53   /Fo 14 0 R
54   /Bl 15 0 R
55 >>
56>>
57{{object 6 0}} <<
58 /Type /Annot
59 /Subtype /Widget
60 /FT /Tx
61 /T (name)
62 /Rect [400 400 500 429]
63 /V (Tralfaz)
64>>
65endobj
66{{object 7 0}} <<
67 /Type /Annot
68 /Subtype /Widget
69 /FT /Tx
70 /T (age)
71 /Rect [400 440 500 469]
72 /V (12)
73>>
74endobj
75{{object 10 0}} <<
76  /Type /Action
77  /S /JavaScript
78  /JS (
79    app.alert\("enter"\);
80    try {
81       this.submitForm\("myform", true, true, ["name", "age"]\);
82       app.alert\("ERROR: this.submitForm\(\) must not be allowed to execute"\);
83    } catch \(e\) {
84       app.alert\("PASS: this.submitForm blocked with " + e\);
85    }
86    try {
87       this.print\(\);
88       app.alert\("ERROR: this.print\(\) must not be allowed to execute"\);
89    } catch \(e\) {
90       app.alert\("PASS: this.print blocked with " + e\);
91    }
92  )
93>>
94endobj
95{{object 11 0}} <<
96  /Type /Action
97  /S /JavaScript
98  /JS (
99    app.alert\("exit"\);
100    try {
101       this.submitForm\("myform", true, true, ["name", "age"]\);
102       app.alert\("ERROR: this.submitForm\(\) must not be allowed to execute"\);
103    } catch \(e\) {
104       app.alert\("PASS: this.submitForm blocked with " + e\);
105    }
106    try {
107       this.print\(\);
108       app.alert\("ERROR: this.print\(\) must not be allowed to execute"\);
109    } catch \(e\) {
110       app.alert\("PASS: this.print blocked with " + e\);
111    }
112  )
113>>
114endobj
115{{object 12 0}} <<
116  /Type /Action
117  /S /JavaScript
118  /JS (
119    app.alert\("down"\);
120    try {
121       this.submitForm\("https://example.com", true, true, ["name", "age"]\);
122    } catch \(e\) {
123       app.alert\("ERROR: " + e\);
124    }
125    try {
126       this.print\(\);
127       this.print\(false, 1, 10, true, true, true, true, true\);
128       this.print\({}\);
129       this.print\({"bUi": false, "nStart": 42, "nEnd": 17,
130            "bSilent": true, "bShrinkToFit": true, "bPrintAsImage": true,
131            "bReverse": true, "bAnnotations": true, "bogus": "yes"}\);
132    } catch \(e\) {
133       app.alert\("ERROR: " + e\);
134    }
135  )
136>>
137endobj
138{{object 13 0}} <<
139  /Type /Action
140  /S /JavaScript
141  /JS (
142    app.alert\("up"\);
143    try {
144       // Use different bUrl value this time around.
145       this.submitForm\("https://example.com", false, true, ["name", "age"]\);
146    } catch \(e\) {
147       app.alert\("ERROR: " + e\);
148    }
149    try {
150       this.print\(\);
151    } catch \(e\) {
152       app.alert\("ERROR: " + e\);
153    }
154  )
155>>
156endobj
157{{object 14 0}} <<
158  /Type /Action
159  /S /JavaScript
160  /JS (
161    app.alert\("focus"\);
162    try {
163       this.submitForm\("myform", true, true, ["name", "age"]\);
164       app.alert\("ERROR: this.submitForm\(\) must not be allowed to execute"\);
165    } catch \(e\) {
166       app.alert\("PASS: this.submitForm blocked with " + e\);
167    }
168    try {
169       this.print\(\);
170       app.alert\("ERROR: this.print\(\) must not be allowed to execute"\);
171    } catch \(e\) {
172       app.alert\("PASS: this.print blocked with " + e\);
173    }
174  )
175>>
176endobj
177{{object 15 0}} <<
178  /Type /Action
179  /S /JavaScript
180  /JS (
181    app.alert\("blur"\);
182    try {
183       this.submitForm\("myform", true, true, ["name", "age"]\);
184       app.alert\("ERROR: this.submitForm\(\) must not be allowed to execute"\);
185    } catch \(e\) {
186       app.alert\("PASS: this.submitForm blocked with " + e\);
187    }
188    try {
189       this.print\(\);
190       app.alert\("ERROR: this.print\(\) must not be allowed to execute"\);
191    } catch \(e\) {
192       app.alert\("PASS: this.print blocked with " + e\);
193    }
194  )
195>>
196endobj
197{{xref}}
198{{trailer}}
199{{startxref}}
200%%EOF
201