xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/bug_1447268.in (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1{{header}}
2{{object 1 0}} <<
3  /Type /Catalog
4  /Pages 2 0 R
5  /AcroForm 4 0 R
6  /OpenAction 40 0 R
7>>
8endobj
9{{object 2 0}} <<
10  /Type /Pages
11  /Count 5
12  /Kids [
13    30 0 R
14    31 0 R
15    32 0 R
16    33 0 R
17    34 0 R
18  ]
19>>
20endobj
21% Forms
22{{object 4 0}} <<
23  /Fields [
24    5 0 R
25    8 0 R
26    9 0 R
27    10 0 R
28    11 0 R
29  ]
30>>
31endobj
32% Fields
33{{object 5 0}} <<
34  /T (Field)
35  /Kids [6 0 R]
36  /V (my_field)
37>>
38endobj
39{{object 6 0}} <<
40  /FT /Tx
41  /Parent 5 0 R
42  /Kids [7 0 R]
43  /Rect [200 200 220 220]
44>>
45endobj
46{{object 7 0}} <<
47  /Type /Annot
48  /Subtype /Widget
49  /Parent 6 0 R
50  /Rect [0 500 600 600]
51
52>>
53endobj
54{{object 8 0}} <<
55  /Type /Annot
56  /Subtype /Widget
57  /FT /Tx
58  /T (Field2)
59  /V (Field_2)
60  /Rect [0 500 600 600]
61>>
62endobj
63{{object 9 0}} <<
64  /Type /Annot
65  /Subtype /Widget
66  /FT /Tx
67  /T (Field4)
68  /V (Field_4)
69  /Rect [0 500 600 600]
70  /AA << /F 24 0 R >>
71>>
72endobj
73{{object 10 0}} <<
74  /Type /Annot
75  /Subtype /Widget
76  /FT /Tx
77  /T (Field5)
78  /V (Field_5)
79  /Rect [0 500 600 600]
80>>
81endobj
82{{object 11 0}} <<
83  /T (Field3)
84  /Parent 4 0 R
85  /Kids [12 0 R]
86  /Opt [(aa) (bb) (cc) (dd) (ee)]
87  /V [(aa) (bb) (cc) (dd) (ee)]
88>>
89endobj
90{{object 12 0}} <<
91  /Type /Annot
92  /Subtype /Widget
93  /FT /Ch
94  /Ff 131072
95  /Parent 11 0 R
96  /Kids [13 0 R]
97>>
98endobj
99{{object 13 0}} <<
100  /Type /Annot
101  /Subtype /Widget
102  /Parent 12 0 R
103  /Rect [0 400 600 600]
104>>
105endobj
106{{object 14 0}} <<
107  /Type /Annot
108  /Subtype /Widget
109  /Parent 12 0 R
110  /Rect [100 400 500 500]
111>>
112endobj
113% OpenAction action
114{{object 22 0}} <<
115  /S /JavaScript
116  /JS 23 0 R
117>>
118endobj
119{{object 23 0}} <<
120  {{streamlen}}
121>>
122stream
123doc = this;
124function cb_func() {
125    doc.pageNum = 1;
126    doc.getField("Field" ).setFocus();
127    doc.getField("Field1").setFocus();
128    doc.getField("Field2").setFocus();
129    doc.getField("Field3").setFocus();
130    doc.getField("Field4").setFocus();
131    doc.getField("Field5").setFocus();
132    return 0;
133}
134doc.getField("Field").checkThisBox ({valueOf: cb_func});
135doc.getField("Field1").checkThisBox({valueOf: cb_func});
136doc.getField("Field2").checkThisBox({valueOf: cb_func});
137doc.getField("Field3").checkThisBox({valueOf: cb_func});
138doc.getField("Field4").checkThisBox({valueOf: cb_func});
139doc.getField("Field5").checkThisBox({valueOf: cb_func});
140endstream
141endobj
142% OpenAction action
143{{object 24 0}} <<
144  /S /JavaScript
145  /JS 25 0 R
146>>
147endobj
148{{object 25 0}} <<
149  {{streamlen}}
150>>
151stream
152this.pageNum = 2;
153this.pageNum = 3;
154endstream
155endobj
156% Pages
157{{object 30 0}} <<
158  /Type /Page
159  /Parent 2 0 R
160  /MediaBox [0 0 612 792]
161>>
162endobj
163{{object 31 0}} <<
164  /Type /Page
165  /Parent 2 0 R
166  /MediaBox [0 0 612 792]
167  /Annots [9 0 R]
168>>
169endobj
170{{object 32 0}} <<
171  /Type /Page
172  /Parent 2 0 R
173  /MediaBox [0 0 612 792]
174  /Annots [13 0 R]
175>>
176endobj
177{{object 33 0}} <<
178  /Type /Page
179  /Parent 2 0 R
180  /MediaBox [0 0 612 792]
181  /AA <</C 22 0 R>>
182>>
183endobj
184{{object 34 0}} <<
185  /Type /Page
186  /Parent 2 0 R
187  /MediaBox [0 0 612 792]
188  /Annots [10 0 R]
189>>
190endobj
191% Document JS Action
192{{object 40 0}} <<
193  /Type /Action
194  /S /JavaScript
195  /JS 41 0 R
196>>
197endobj
198{{object 41 0}} <<
199  {{streamlen}}
200>>
201stream
202var f = this.getField("Field4");
203f.setFocus();
204endstream
205endobj
206{{xref}}
207{{trailer}}
208{{startxref}}
209%%EOF
210