xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/xfa_specific/bug_1052651.in (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1{{header}}
2{{object 1 0}} <<
3  /Type /Catalog
4  /AcroForm 3 0 R
5  /Pages 5 0 R
6  /NeedsRendering true
7>>
8endobj
9{{object 3 0}} <<
10  /DA (/Helv 0 Tf 0 g )
11  /DR <<
12    /Font <<
13      /Helv 9 0 R
14    >>
15  >>
16  /XFA [
17    (preamble) 10 0 R
18    (config) 11 0 R
19    (template) 12 0 R
20    (form) 13 0 R
21    (postamble) 14 0 R
22  ]
23>>
24endobj
25{{object 5 0}}  <<
26  /Type /Pages
27  /Count 1
28  /Kids [6 0 R]
29>>
30endobj
31{{object 6 0}} <<
32  /Type /Page
33  /CropBox [0.0 0.0 612.0 792.0]
34  /MediaBox [0.0 0.0 612.0 792.0]
35  /Parent 5 0 R
36  /Resources <<
37    /ProcSet [/PDF /Text]
38  >>
39  /Rotate 0
40  /StructParents 0
41>>
42endobj
43{{object 8 0}} <<
44  /Type /Font
45  /Subtype /Type1
46  /BaseFont /Helvetica
47  /Encoding /WinAnsiEncoding
48>>
49endobj
50{{object 9 0}} <<
51  /Type /Font
52  /Subtype /Type1
53  /BaseFont /Helvetica
54  /Encoding /WinAnsiEncoding
55>>
56endobj
57{{object 10 0}} <<
58  {{streamlen}}
59>>
60stream
61<?xml version="1.0" encoding="UTF-8"?>
62<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
63endstream
64endobj
65{{object 11 0}} <<
66  {{streamlen}}
67>>
68stream
69<config xmlns="http://www.xfa.org/schema/xci/2.6/">
70  <agent name="designer">
71    <destination>pdf</destination>
72    <pdf>
73      <fontInfo/>
74    </pdf>
75  </agent>
76  <present>
77    <pdf>
78      <version>1.7</version>
79      <renderPolicy>client</renderPolicy>
80      <scriptModel>XFA</scriptModel>
81      <interactive>1</interactive>
82    </pdf>
83    <xdp>
84      <packets>*</packets>
85    </xdp>
86    <destination>pdf</destination>
87  </present>
88  <acrobat>
89    <acrobat7>
90      <dynamicRender>required</dynamicRender>
91    </acrobat7>
92  </acrobat>
93</config>
94endstream
95endobj
96{{object 12 0}} <<
97  {{streamlen}}
98>>
99stream
100<template xmlns="http://www.xfa.org/schema/xfa-template/2.6/">
101  <subform layout="tb" locale="en_US" name="form1" restoreState="auto">
102    <pageSet>
103      <pageArea id="Page1" name="Page1">
104        <contentArea h="10.5in" w="8in" x="0.25in" y="0.25in"/>
105        <medium long="11in" short="8.5in" stock="letter"/>
106      </pageArea>
107    </pageSet>
108    <subform h="10.5in" w="8in" name="subform2">
109      <field h="9.0001mm" name="field1" w="47.625mm" x="6.35mm" y="92.075mm">
110        <ui>
111          <choiceList/>
112        </ui>
113        <items save="1">
114          <text>Single</text>
115          <text>Married</text>
116          <text>Other</text>
117        </items>
118      </field>
119      <field name="field2" h="200mm" w="200mm" x="1mm" y="1mm">
120        <ui>
121          <textEdit/>
122        </ui>
123        <value>
124          <text>pdfium</text>
125        </value>
126        <event activity="change">
127          <script contentType="application/x-javascript">
128            f2_change = f2_change + 1;
129            if (f2_change == 2) {
130                xfa.event.cancelAction = true;
131                f1 = xfa.resolveNode("xfa.form..field1");
132                xfa.host.setFocus(f1);
133                xfa.template.remerge();
134                xfa.host.openList(f1);
135            }
136          </script>
137        </event>
138      </field>
139    </subform>
140    <event activity="docReady">
141      <script contentType="application/x-javascript">
142        f2_change = 0;
143        f2 = xfa.resolveNode("xfa.form..field2");
144        xfa.host.setFocus(f2);
145     </script>
146    </event>
147  </subform>
148</template>
149endstream
150endobj
151{{object 13 0}} <<
152  {{streamlen}}
153>>
154stream
155<form xmlns="http://www.xfa.org/schema/xfa-form/2.6/"></form>
156endstream
157endobj
158{{object 14 0}} <<
159 {{streamlen}}
160>>
161stream
162</xdp:xdp>
163endstream
164endobj
165{{xref}}
166{{trailer}}
167{{startxref}}
168%%EOF
169