xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/xfa_specific/bug_1444238.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  /XFA 43 0 R
21  /Fields [
22    10 0 R
23    11 0 R
24  ]
25>>
26endobj
27% Fields
28{{object 10 0}} <<
29  /Type /Annot
30  /Subtype /Widget
31  /FT /Tx
32  /T (MyField5)
33  /V (myfield_5)
34  /Rect [0 500 600 600]
35>>
36% Fields
37{{object 11 0}} <<
38  /T (MyField3)
39  /Parent 4 0 R
40  /Kids [12 0 R]
41  /Opt [(a) (b) (c) (d)]
42  /V [(a) (b) (c)]
43>>
44endobj
45% Fields
46{{object 12 0}} <<
47  /Type /Annot
48  /Subtype /Widget
49  /FT /Ch
50  /Ff 131072
51  /Parent 11 0 R
52  /Kids [13 0 R]
53>>
54endobj
55% Fields
56{{object 13 0}} <<
57  /Type /Annot
58  /Subtype /Widget
59  /Parent 12 0 R
60  /Rect [0 400 600 600]
61>>
62endobj
63% Fields
64{{object 14 0}} <<
65  /Type /Annot
66  /Subtype /Widget
67  /Parent 12 0 R
68  /Rect [100 400 500 500]
69>>
70endobj
71% Page number 2.
72{{object 32 0}} <<
73  /Type /Page
74  /Parent 2 0 R
75  /MediaBox [0 0 612 792]
76  /Annots [13 0 R]
77
78>>
79endobj
80{{object 34 0}} <<
81  /Type /Page
82  /Parent 2 0 R
83  /MediaBox [0 0 612 792]
84  /Annots [10 0 R]
85>>
86endobj
87% Document JS Action
88{{object 40 0}} <<
89  /Type /Action
90  /S /JavaScript
91  /JS 41 0 R
92>>
93endobj
94% JS program to exexute
95{{object 41 0}} <<
96>>
97stream
98var f5 = this.getField("MyField5");
99var f3 = this.getField("MyField3");
100f3.setFocus();
101this.__defineGetter__("pageNum",function o(){f5.setFocus(); f3.borderStyle="dashed"; f3.setFocus();});
102endstream
103endobj
104{{object 43 0}} <<
105  {{streamlen}}
106>>
107stream
108<?xml version="1.0" encoding="UTF-8"?>
109<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
110<config></config>
111<template xmlns="http://www.xfa.org/schema/xfa-template/2.8/">
112  <subform layout="tb" locale="en_US">
113    <pageSet>
114      <pageArea id="Page1" name="Page1">
115        <contentArea h="268.939mm" w="203.2mm" x="6.35mm" y="6.35mm"/>
116        <medium long="792pt" short="612pt" stock="default"/>
117      </pageArea>
118    </pageSet>
119    <field h="9.0001mm" name="MyField3" w="47.625mm" x="120mm" y="120mm">
120      <ui>
121        <choiceList open="onEntry">
122          <border>
123            <edge/>
124          </border>
125        </choiceList>
126      </ui>
127      <items save="1">
128        <text>apples</text>
129        <text>bananas</text>
130        <text>pears</text>
131      </items>
132      <value>
133        <text>apples</text>
134      </value>
135      <event activity="preOpen">
136        <script contentType="application/x-javascript">
137            var aa = this.pageNum;
138        </script>
139      </event>
140    </field>
141  </subform>
142</template>
143</xdp:xdp>
144endstream
145endobj
146{{xref}}
147{{trailer}}
148{{startxref}}
149%%EOF
150