xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/xfa_specific/bug_1052786.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>>
41endobj
42{{object 8 0}} <<
43  /Type /Font
44  /Subtype /Type1
45  /BaseFont /Helvetica
46  /Encoding /WinAnsiEncoding
47>>
48endobj
49{{object 9 0}} <<
50  /Type /Font
51  /Subtype /Type1
52  /BaseFont /Helvetica
53  /Encoding /WinAnsiEncoding
54>>
55endobj
56{{object 10 0}} <<
57  {{streamlen}}
58>>
59stream
60<?xml version="1.0" encoding="UTF-8"?>
61<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
62endstream
63endobj
64{{object 11 0}} <<
65  {{streamlen}}
66>>
67stream
68<config xmlns="http://www.xfa.org/schema/xci/2.6/">
69  <agent name="designer">
70    <destination>pdf</destination>
71    <pdf>
72      <fontInfo/>
73    </pdf>
74  </agent>
75  <present>
76    <pdf>
77      <version>1.7</version>
78      <renderPolicy>client</renderPolicy>
79      <scriptModel>XFA</scriptModel>
80      <interactive>1</interactive>
81    </pdf>
82    <xdp>
83      <packets>*</packets>
84    </xdp>
85    <destination>pdf</destination>
86  </present>
87  <psMap/>
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="choiceList0" 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="choiceList1" h="10mm" w="1mm" x="5mm" y="50mm">
120        <ui>
121          <textEdit hScrollPolicy="off" vScrollPolicy="off" multiLine="0"/>
122        </ui>
123      <value>
124        <text maxChars="6">pdfium</text>
125      </value>
126      <event activity="full">
127        <script contentType="application/x-javascript">
128          full_count += 1;
129          if (full_count == 2) {
130            f1 = xfa.resolveNode("xfa.form..choiceList0");
131            xfa.host.setFocus(f1);
132            xfa.template.remerge();
133            xfa.host.openList(f1);
134          }
135        </script>
136      </event>
137    </field>
138  </subform>
139    <event activity="docReady">
140      <script contentType="application/x-javascript">
141        full_count = 0;
142        choiceList1 = xfa.resolveNode("xfa.form..choiceList1");
143        choiceList1.rawValue = "12345888888888888888";
144        xfa.host.setFocus(choiceList1);
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