xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/xfa_specific/bug_1053617.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 name="form1">
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 name="f1" h="10mm" w="10mm" x="20mm" y="20mm">
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="10mm" w="10mm" x="1mm" y="1mm">
103            <ui>
104              <dateTimeEdit/>
105            </ui>
106            <value>
107              <date/>
108            </value>
109            <format>
110              <picture>date{MM/DD/YY}</picture>
111            </format>
112            <event activity="initialize">
113              <script contentType="application/x-javascript">
114                this.rawValue = "2020" + "-" + "12" + "-" + "10";
115              </script>
116            </event>
117            <event activity="change">
118              <script contentType="application/x-javascript">
119                a = a + 1;
120                if (a == 2) {
121                  xfa.event.cancelAction = true;
122                  c = xfa.resolveNode("xfa.form..f1");
123                  xfa.host.setFocus(c);
124                  d = xfa.resolveNode("xfa.form..f4");
125                  d.instanceManager.addInstance(1);
126                  d.instanceManager.removeInstance(0);
127                  xfa.host.openList(c);
128                }
129              </script>
130            </event>
131          </field>
132      </subform>
133    </subform>
134    <event activity="docReady">
135      <script contentType="application/x-javascript">
136        a = 0;
137        b = xfa.resolveNode("xfa.form..f2");
138        xfa.host.setFocus(b);
139      </script>
140    </event>
141  </subform>
142</template>
143endstream
144endobj
145{{object 9 0}} <<
146  {{streamlen}}
147>>
148stream
149</xdp:xdp>
150endstream
151endobj
152{{xref}}
153{{trailer}}
154{{startxref}}
155%%EOF
156