xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/xfa_specific/bug_1040329.in (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1{{header}}
2{{object 1 0}} <<
3  /Pages 2 0 R
4  /NeedsRendering true
5  /AcroForm <</XFA 5 0 R>>
6  /OpenAction 3 0 R
7  /Type /Catalog
8>>
9endobj
10{{object 2 0}} <<
11  /Type /Pages
12  /Count 1
13  /Kids [ 4 0 R ]
14>>
15endobj
16{{object 3 0}} <<
17  /S /JavaScript
18  /JS (
19  )
20>>
21endobj
22{{object 4 0}} <<
23  /Type /Page
24  /Parent 2 0 R
25  /MediaBox [ 0 0 795 842 ]
26>>
27endobj
28{{object 5 0}} <<
29  {{streamlen}}
30>>
31stream
32<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
33<template >
34  <subform allowMacro="0" layout="lr" mergeMode="consumeData" name="subform_0" >
35    <pageSet >
36      <occur initial="1" max="10" min="0" ></occur>
37      <pageArea >
38        <contentArea h="0.75in" w="0.25in" x="0.25in" y="0.25in" ></contentArea>
39        <subform allowMacro="0" layout="row" mergeMode="consumeData" name="subform_1" >
40          <event activity="initialize" >
41            <script contentType="application/x-javascript">
42            </script>
43          </event>
44          <field name="field_1" >
45            <bind match="dataRef" ref="a" ></bind>
46            <calculate >
47              <script contentType="application/x-javascript">
48                var f=xfa.resolveNode("xfa.form.subform_0");
49                xfa.host.setFocus(f);
50                f.mark ="square";
51              </script>
52            </calculate>
53            <event activity="docReady" >
54              <script contentType="application/x-javascript">
55                xfa.host.resetData(this);
56              </script>
57            </event>
58          </field>
59        </subform>
60      </pageArea>
61    </pageSet>
62    <field name="field_2" >
63      <bind match="dataRef" ref="a" ></bind>
64      <calculate >
65        <script contentType="application/x-javascript">
66          xfa.host.setFocus(this);
67        </script>
68      </calculate>
69      <items presence="hidden" save="0" >
70        <text >a</text>
71        <text >b</text>
72        <text >c</text>
73      </items>
74      <ui >
75        <choiceList commitOn="exit" open="onEntry" textEntry="1" ></choiceList>
76      </ui>
77      <value override="0" >
78        <text >a</text>
79      </value>
80      <event activity="initialize" >
81        <script contentType="application/x-javascript">
82        </script>
83      </event>
84      <event activity="change" >
85        <script contentType="application/x-javascript">
86          xfa.form.remerge();
87          xfa.host.openList(this);
88        </script>
89      </event>
90    </field>
91  </subform>
92</template>
93</xdp:xdp>
94endstream
95endobj
96{{xref}}
97{{trailer}}
98{{startxref}}
99%%EOF
100