xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/xfa_specific/bug_1054429.in (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1{{header}}
2{{object 1 0}} <<
3  /Type /Catalog
4  /AcroForm 2 0 R
5  /Pages 3 0 R
6  /Extensions <<
7    /ADBE <<
8      /BaseVersion /1.7
9      /ExtensionLevel 8
10    >>
11  >>
12  /NeedsRendering true
13>>
14endobj
15{{object 2 0}} <<
16  /XFA [
17    (preamble) 5 0 R
18    (config) 6 0 R
19    (template) 7 0 R
20    (postamble) 9 0 R
21  ]
22>>
23endobj
24{{object 3 0}} <<
25  /Type /Pages
26  /Count 1
27  /Kids [4 0 R]
28>>
29endobj
30{{object 4 0}} <<
31 /Type /Page
32 /Parent 2 0 R
33 /MediaBox [0 0 612 792]
34>>
35endobj
36{{object 5 0}} <<
37  {{streamlen}}
38>>
39stream
40<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
41endstream
42endobj
43{{object 6 0}} <<
44  {{streamlen}}
45>>
46stream
47<config xmlns="http://www.xfa.org/schema/xci/3.0/">
48<agent name="designer">
49  <destination>pdf</destination>
50  <pdf>
51    <fontInfo/>
52  </pdf>
53</agent>
54<present>
55  <pdf>
56    <version>1.7</version>
57    <adobeExtensionLevel>8</adobeExtensionLevel>
58    <renderPolicy>client</renderPolicy>
59    <scriptModel>XFA</scriptModel>
60    <interactive>1</interactive>
61  </pdf>
62  <xdp>
63    <packets>*</packets>
64  </xdp>
65  <destination>pdf</destination>
66  <script>
67    <runScripts>server</runScripts>
68  </script>
69</present>
70<acrobat>
71  <acrobat7>
72    <dynamicRender>required</dynamicRender>
73  </acrobat7>
74  <validate>preSubmit</validate>
75</acrobat>
76</config>
77endstream
78endobj
79{{object 7 0}} <<
80  {{streamlen}}
81>>
82stream
83<template xmlns="http://www.xfa.org/schema/xfa-template/2.6/">
84  <subform layout="tb" locale="en_US" name="form1" restoreState="auto">
85    <pageSet>
86      <pageArea id="Page1" name="Page1">
87        <contentArea h="10.5in" w="8in" x="0.25in" y="0.25in"/>
88        <medium long="11in" short="8.5in" stock="letter"/>
89      </pageArea>
90    </pageSet>
91    <subform h="10.5in" w="8in" name="subform2">
92      <field h="10mm" name="f1" w="40mm" x="5mm" y="90mm">
93        <ui>
94          <choiceList/>
95        </ui>
96        <items save="1">
97          <text>Single</text>
98        </items>
99      </field>
100      <subform name="f4" x="5mm" y="5mm">
101          <occur max="-1"/>
102          <field name="f2" h="300mm" w="300mm" x="1mm" y="1mm">
103            <ui>
104              <textEdit/>
105            </ui>
106            <value>
107              <text>pdfiummmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</text>
108            </value>
109            <event activity="change">
110              <script contentType="application/x-javascript">
111                a = a + 1;
112                if (a == 2)  {
113                    xfa.event.cancelAction = true;
114                    b = xfa.resolveNode("xfa.form..f1");
115                    xfa.host.setFocus(b);
116                    d = xfa.resolveNode("xfa.form..f4");
117                    d.instanceManager.addInstance(1);
118                    d.instanceManager.removeInstance(0);
119                    xfa.host.openList(b);
120                }
121              </script>
122            </event>
123          </field>
124      </subform>
125    </subform>
126    <event activity="docReady">
127      <script contentType="application/x-javascript">
128        a = 0;
129        c = xfa.resolveNode("xfa.form..f2");
130        xfa.host.setFocus(c);
131      </script>
132    </event>
133  </subform>
134</template>
135endstream
136endobj
137{{object 9 0}} <<
138  {{streamlen}}
139>>
140stream
141</xdp:xdp>
142endstream
143endobj
144{{xref}}
145{{trailer}}
146{{startxref}}
147%%EOF
148