xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/bug_895152.in (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1{{header}}
2{{object 1 0}} <<
3  /Type /Catalog
4  /Pages 2 0 R
5  /AcroForm 4 0 R
6  /OpenAction 7 0 R
7>>
8endobj
9{{object 2 0}} <<
10  /Type /Pages
11  /Count 1
12  /Kids [3 0 R ]
13>>
14endobj
15{{object 3 0}} <<
16  /Type /Page
17  /Parent 2 0 R
18  /MediaBox [0 0 600 700]
19  /Resources <<>>
20  /Annots [5 0 R]
21>>
22endobj
23{{object 4 0}} <<
24  /Fields [5 0 R]
25>>
26endobj
27{{object 5 0}} <<
28  /V /TestV
29  /FT /Tx
30  /Type /Annot
31  /Subtype /Widget
32  /T (txt1)
33  /F 4
34  /AP <</N 6 0 R>>
35  /Rect [200 200 400 400]
36>>
37endobj
38{{object 6 0}} <<
39  /Type /XObject
40  /Subtype /Form
41  /FormType 1
42>>
43endobj
44{{object 7 0}} <<
45  /Type /Action
46  /S /JavaScript
47  /JS 8 0 R
48>>
49endobj
50{{object 8 0}} <<
51  {{streamlen}}
52>>
53stream
54function run() {
55  var doc = this;
56  Object.prototype.__defineSetter__('V', function() {
57    doc.resetForm();
58  });
59  var other_info = this.info;
60}
61try {
62  run();
63  app.alert('*** PASS ***');
64} catch (e) {
65  app.alert('Caught: ' + e);
66}
67endstream
68endobj
69{{xref}}
70trailer <<
71  /Root 1 0 R
72  /Info 5 0 R
73>>
74{{startxref}}
75%%EOF
76
77