xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/bug_1445426.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 2
12  /Kids [
13    32 0 R
14    34 0 R
15  ]
16>>
17endobj
18% Forms
19{{object 4 0}} <<
20  /Fields [
21    10 0 R
22    11 0 R
23  ]
24>>
25endobj
26% Fields
27{{object 10 0}} <<
28  /Type /Annot
29  /Subtype /Widget
30  /FT /Tx
31  /T (Field_TextEdit)
32  /Rect [0 0 612 792]
33>>
34{{object 11 0}} <<
35  /T (Field_ComboBox)
36  /Parent 4 0 R
37  /Kids [12 0 R]
38  /Opt [(a) (b) (c) (d)]
39  /V [(a)]
40>>
41endobj
42{{object 12 0}} <<
43  /Type /Annot
44  /Subtype /Widget
45  /FT /Ch
46  /Ff 131072
47  /Parent 11 0 R
48  /Kids [13 0 R]
49>>
50endobj
51{{object 13 0}} <<
52  /Parent 12 0 R
53  /Type /Annot
54  /Subtype /Widget
55  /Rect [0 0 612 792]
56  /AA << /K 20 0 R >>
57>>
58endobj
59% Pages
60{{object 32 0}} <<
61  /Type /Page
62  /Parent 2 0 R
63  /MediaBox [0 0 612 792]
64  /Annots [13 0 R]
65
66>>
67endobj
68{{object 34 0}} <<
69  /Type /Page
70  /Parent 2 0 R
71  /MediaBox [0 0 612 792]
72  /Annots [10 0 R]
73>>
74endobj
75% Document JS Action
76{{object 40 0}} <<
77  /Type /Action
78  /S /JavaScript
79  /JS 41 0 R
80>>
81endobj
82% JS program to exexute
83{{object 41 0}} <<
84  {{streamlen}}
85>>
86stream
87var field_text = this.getField("Field_TextEdit");
88var field_combobox = this.getField("Field_ComboBox");
89field_combobox.setFocus();
90this.__defineGetter__("filesize", function new_getter(){
91                                    field_text.setFocus();
92                                    field_combobox.borderStyle="dashed";
93                                    field_combobox.setFocus();
94                                  });
95endstream
96endobj
97% OpenAction action
98{{object 20 0}} <<
99  /S /JavaScript
100  /JS 21 0 R
101>>
102endobj
103% JS program to exexute
104{{object 21 0}} <<
105  {{streamlen}}
106>>
107stream
108var t = this.filesize;
109endstream
110endobj
111{{xref}}
112{{trailer}}
113{{startxref}}
114%%EOF
115