<?xml version="1.0" encoding="UTF-8"?>
<?xfa generator="Designer_V6.2.0.20160331.1.924316" APIVersion="3.6.16075.0"?>
<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2017-12-18T18:59:56Z" uuid="5b081fab-1370-4686-87c2-6381251d4833">
<template xmlns="http://www.xfa.org/schema/xfa-template/3.6/">
   <?formServer defaultPDFRenderFormat acrobat11.0dynamic?>
   <subform name="form1" layout="tb" locale="en_US" restoreState="auto">
      <pageSet>
         <pageArea name="Page1" id="Page1">
            <contentArea x="0.25in" y="0.25in" w="8in" h="10.5in"/>
            <medium stock="letter" short="8.5in" long="11in"/>
            <?templateDesigner expand 1?></pageArea>
         <?templateDesigner expand 1?></pageSet>
      <subform w="8in" h="10.5in">
         <draw name="Text1" y="6.35mm" x="57.15mm" w="78.17mm" h="6.644mm">
            <ui>
               <textEdit/>
            </ui>
            <value>
               <text>Merge Data with form template</text>
            </value>
            <font size="16pt" typeface="Arial" baselineShift="0pt"/>
            <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
            <para hAlign="center" spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" marginLeft="0pt" marginRight="0pt"/>
            <?renderCache.bounds 218750 16000 0 0 1417 1417 0 0?>
            <?renderCache.textRun 29 Merge Data with form template 0 1417 14050 0 0 0 "Arial" 0 0 16000 ISO-8859-1?></draw>
         <draw name="Text2" y="20.864mm" x="3.713mm" w="190.5mm" h="67.604mm">
            <ui>
               <textEdit/>
            </ui>
            <value>
               <text>There are 2 ways to merge data with the xdp template when it is being rendered as HTML. dataRef: You can use the dataRef  parameter in the url.This parameter specifies absolute path of the data file that is merged with the template. This parameter can be a URL to a rest service returning the data in xml format data: This parameter specifies the UTF-8 encoded data bytes that are merged with the template. If this parameter is specified, the HTML5 form ignores dataRef parameter.As a best practice we recommend using the data approach. This example shows you how to use the data attribute.</text>
            </value>
            <font typeface="Arial" size="16pt" baselineShift="0pt"/>
            <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
            <para hAlign="justify" spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" marginLeft="0pt" marginRight="0pt"/>
         </draw>
         <field h="8.9916mm" name="Name" w="106.68mm" x="38.763mm" y="190.166mm">
            <ui>
               <textEdit>
                  <border>
                     <edge stroke="lowered"/>
                  </border>
                  <margin/>
               </textEdit>
            </ui>
            <font typeface="Myriad Pro"/>
            <margin bottomInset="0.9906mm" leftInset="0.9906mm" rightInset="0.9906mm" topInset="0.9906mm"/>
            <para marginLeft="0pt" vAlign="middle"/>
            <caption reserve="16.51mm">
               <para vAlign="middle"/>
               <value>
                  <text>Name</text>
               </value>
            </caption>
         </field>
         <field h="8.9916mm" name="Address" w="106.68mm" y="199.151mm" x="38.763mm">
            <ui>
               <textEdit>
                  <border>
                     <edge stroke="lowered"/>
                  </border>
                  <margin/>
               </textEdit>
            </ui>
            <font typeface="Myriad Pro"/>
            <margin bottomInset="0.9906mm" leftInset="0.9906mm" rightInset="0.9906mm" topInset="0.9906mm"/>
            <para marginLeft="0pt" vAlign="middle"/>
            <caption reserve="16.51mm">
               <value>
                  <text>Address</text>
               </value>
               <para vAlign="middle"/>
            </caption>
         </field>
         <field h="8.9916mm" name="City" y="208.143mm" w="44.45mm" x="38.763mm">
            <ui>
               <textEdit>
                  <border>
                     <edge stroke="lowered"/>
                  </border>
                  <margin/>
               </textEdit>
            </ui>
            <font typeface="Myriad Pro"/>
            <margin bottomInset="0.9906mm" leftInset="0.9906mm" rightInset="0.9906mm" topInset="0.9906mm"/>
            <para marginLeft="0pt" vAlign="middle"/>
            <caption reserve="16.51mm">
               <value>
                  <text>City</text>
               </value>
               <para vAlign="middle"/>
            </caption>
         </field>
         <field h="8.9916mm" name="State" w="19.05mm" x="85.753mm" y="208.143mm">
            <ui>
               <textEdit>
                  <border>
                     <edge stroke="lowered"/>
                  </border>
                  <margin/>
               </textEdit>
            </ui>
            <font typeface="Myriad Pro"/>
            <margin bottomInset="0.9906mm" leftInset="0.9906mm" rightInset="0.9906mm" topInset="0.9906mm"/>
            <para marginLeft="0pt" vAlign="middle"/>
            <caption reserve="10.16mm">
               <value>
                  <text>State</text>
               </value>
               <para vAlign="middle"/>
            </caption>
         </field>
         <field h="8.9916mm" name="ZipCode" w="38.1mm" x="107.343mm" y="208.143mm">
            <ui>
               <textEdit>
                  <border>
                     <edge stroke="lowered"/>
                  </border>
                  <margin/>
               </textEdit>
            </ui>
            <font typeface="Myriad Pro"/>
            <margin bottomInset="0.9906mm" leftInset="0.9906mm" rightInset="0.9906mm" topInset="0.9906mm"/>
            <para marginLeft="0pt" vAlign="middle"/>
            <caption reserve="15.24mm">
               <value>
                  <text>Zip Code</text>
               </value>
               <para vAlign="middle"/>
            </caption>
         </field>
         <field h="8.9916mm" name="Country" w="106.68mm" y="217.134mm" x="38.763mm">
            <ui>
               <textEdit>
                  <border>
                     <edge stroke="lowered"/>
                  </border>
                  <margin/>
               </textEdit>
            </ui>
            <font typeface="Myriad Pro"/>
            <margin bottomInset="0.9906mm" leftInset="0.9906mm" rightInset="0.9906mm" topInset="0.9906mm"/>
            <para marginLeft="0pt" vAlign="middle"/>
            <caption reserve="16.51mm">
               <value>
                  <text>Country</text>
               </value>
               <para vAlign="middle"/>
            </caption>
         </field>
         <draw name="Text3" y="101.6mm" x="6.35mm" w="190.5mm" h="67.604mm">
            <ui>
               <textEdit/>
            </ui>
            <value>
               <exData contentType="text/html">
                  <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><p style="text-decoration:none;letter-spacing:0in">The address block below is being pre-populated using the data attribute. When the form is being rendered, we make a HTTP POST call and the data returned by the HTTP call is used to pre-populate the address block. You are<span style="xfa-spacerun:yes"> </span><span style="text-decoration:none;letter-spacing:0em">encouraged</span> to<span style="xfa-spacerun:yes"> </span><span style="text-decoration:none;letter-spacing:0em">download</span> the package and take a look at the setdata.jsp file. This code in this file make the HTTP call and uses the data attribute to populate the form</p><p style="text-decoration:none;letter-spacing:0in">We make use of custom profile for rendering this XDP template. In the custom profile, we have included the setdata.jsp. The code in this JSP makes HTTP POST calls to an URL with in AEM. The result of the POST call is then used as the data for the form.</p></body>
               </exData>
            </value>
            <font size="16pt" typeface="Arial" baselineShift="0pt"/>
            <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
            <para spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" marginLeft="0pt" marginRight="0pt"/>
         </draw>
         <field name="HTTPSubmitButton1" y="233.419mm" x="73.446mm" w="28.575mm" h="6mm">
            <?templateDesigner isHttpSubmitObject true?>
            <ui>
               <button/>
            </ui>
            <font typeface="Myriad Pro"/>
            <caption>
               <value>
                  <text>Sample Submit</text>
               </value>
               <para hAlign="center" vAlign="middle"/>
            </caption>
            <border hand="right">
               <edge stroke="raised"/>
               <fill>
                  <color value="212,208,200"/>
               </fill>
            </border>
            <bind match="none"/>
            <event name="event__click" activity="click">
               <submit format="urlencoded" textEncoding="UTF-8"/>
            </event>
         </field>
         <?templateDesigner expand 1?>
         <draw name="Text4" y="241.988mm" x="38.763mm" w="5.16725in" h="8.761mm">
            <ui>
               <textEdit/>
            </ui>
            <value>
               <text>Please fill out the form and submit. You will get back the structure of the data that needs to be created to pre-populate the form.</text>
            </value>
            <font typeface="Myriad Pro"/>
            <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
            <?renderCache.bounds 369208 22000 0 0 1417 1417 0 0?>
            <?renderCache.textRun 92 Please fill out the form and submit. You will get back the structure of the data that needs  0 1417 8917 0 0 0 "Myriad Pro" 0 0 10000 ISO-8859-1?>
            <?renderCache.textRun 39 to be created to pre-populate the form. 0 1417 20917 0 0 0 "Myriad Pro" 0 0 10000 ISO-8859-1?></draw>
      </subform>
      <proto/>
      <desc>
         <text name="version">6.2.0.20160331.1.924316.921890</text>
      </desc>
      <?templateDesigner expand 1?>
      <?renderCache.subset "Arial" 0 0 ISO-8859-1 4 200 50 0003000F0010001100150018001B001D0024002700280029002B002C002D002F0030003200330035003600370038003A003B003C004400450046004700480049004A004B004C004D004E004F005000510052005300550056005700580059005A005B005C ,-.258:ADEFHIJLMOPRSTUWXYabcdefghijklmnoprstuvwxy?>
      <?renderCache.subset "Myriad Pro" 0 0 ISO-8859-1 4 132 33 0001000E000F00220024002F003100340035003A003B00420043004400450046004700480049004A004C004D004E004F00500051005300540055005600580059005A -.ACNPSTYZabcdefghiklmnoprstuwxy?></subform>
   <?templateDesigner DefaultPreviewDynamic 1?>
   <?templateDesigner DefaultRunAt client?>
   <?templateDesigner Grid show:1, snap:1, units:0, color:ff8080, origin:(0,0), interval:(125000,125000)?>
   <?templateDesigner WidowOrphanControl 0?>
   <?templateDesigner DefaultCaptionFontSettings face:Myriad Pro;size:10;weight:normal;style:normal?>
   <?templateDesigner DefaultValueFontSettings face:Myriad Pro;size:10;weight:normal;style:normal?>
   <?templateDesigner DefaultLanguage JavaScript?>
   <?acrobat JavaScript strictScoping?>
   <?templateDesigner SaveTaggedPDF 0?>
   <?templateDesigner SavePDFWithEmbeddedFonts 0?>
   <?templateDesigner SavePDFWithLog 0?>
   <?templateDesigner FormTargetVersion 36?>
   <?templateDesigner Rulers horizontal:1, vertical:1, guidelines:1, crosshairs:0?>
   <?templateDesigner Zoom 70?></template>
<config xmlns="http://www.xfa.org/schema/xci/3.0/">
   <agent name="designer">
      <!--  [0..n]  -->
      <destination>pdf</destination>
      <pdf>
         <!--  [0..n]  -->
         <fontInfo/>
      </pdf>
   </agent>
   <present>
      <!--  [0..n]  -->
      <destination>pdf</destination>
      <pdf>
         <!--  [0..n]  -->
         <fontInfo>
            <embed>0</embed>
         </fontInfo>
         <tagged>0</tagged>
         <version>1.7</version>
         <adobeExtensionLevel>11</adobeExtensionLevel>
      </pdf>
      <xdp>
         <packets>*</packets>
      </xdp>
   </present>
</config>
<localeSet xmlns="http://www.xfa.org/schema/xfa-locale-set/2.7/">
   <locale name="en_US" desc="English (United States)">
      <calendarSymbols name="gregorian">
         <monthNames>
            <month>January</month>
            <month>February</month>
            <month>March</month>
            <month>April</month>
            <month>May</month>
            <month>June</month>
            <month>July</month>
            <month>August</month>
            <month>September</month>
            <month>October</month>
            <month>November</month>
            <month>December</month>
         </monthNames>
         <monthNames abbr="1">
            <month>Jan</month>
            <month>Feb</month>
            <month>Mar</month>
            <month>Apr</month>
            <month>May</month>
            <month>Jun</month>
            <month>Jul</month>
            <month>Aug</month>
            <month>Sep</month>
            <month>Oct</month>
            <month>Nov</month>
            <month>Dec</month>
         </monthNames>
         <dayNames>
            <day>Sunday</day>
            <day>Monday</day>
            <day>Tuesday</day>
            <day>Wednesday</day>
            <day>Thursday</day>
            <day>Friday</day>
            <day>Saturday</day>
         </dayNames>
         <dayNames abbr="1">
            <day>Sun</day>
            <day>Mon</day>
            <day>Tue</day>
            <day>Wed</day>
            <day>Thu</day>
            <day>Fri</day>
            <day>Sat</day>
         </dayNames>
         <meridiemNames>
            <meridiem>AM</meridiem>
            <meridiem>PM</meridiem>
         </meridiemNames>
         <eraNames>
            <era>BC</era>
            <era>AD</era>
         </eraNames>
      </calendarSymbols>
      <datePatterns>
         <datePattern name="full">EEEE, MMMM D, YYYY</datePattern>
         <datePattern name="long">MMMM D, YYYY</datePattern>
         <datePattern name="med">MMM D, YYYY</datePattern>
         <datePattern name="short">M/D/YY</datePattern>
      </datePatterns>
      <timePatterns>
         <timePattern name="full">h:MM:SS A Z</timePattern>
         <timePattern name="long">h:MM:SS A Z</timePattern>
         <timePattern name="med">h:MM:SS A</timePattern>
         <timePattern name="short">h:MM A</timePattern>
      </timePatterns>
      <dateTimeSymbols>GyMdkHmsSEDFwWahKzZ</dateTimeSymbols>
      <numberPatterns>
         <numberPattern name="numeric">z,zz9.zzz</numberPattern>
         <numberPattern name="currency">$z,zz9.99|($z,zz9.99)</numberPattern>
         <numberPattern name="percent">z,zz9%</numberPattern>
      </numberPatterns>
      <numberSymbols>
         <numberSymbol name="decimal">.</numberSymbol>
         <numberSymbol name="grouping">,</numberSymbol>
         <numberSymbol name="percent">%</numberSymbol>
         <numberSymbol name="minus">-</numberSymbol>
         <numberSymbol name="zero">0</numberSymbol>
      </numberSymbols>
      <currencySymbols>
         <currencySymbol name="symbol">$</currencySymbol>
         <currencySymbol name="isoname">USD</currencySymbol>
         <currencySymbol name="decimal">.</currencySymbol>
      </currencySymbols>
      <typefaces>
         <typeface name="Myriad Pro"/>
         <typeface name="Minion Pro"/>
         <typeface name="Courier Std"/>
         <typeface name="Adobe Pi Std"/>
         <typeface name="Adobe Hebrew"/>
         <typeface name="Adobe Arabic"/>
         <typeface name="Adobe Thai"/>
         <typeface name="Kozuka Gothic Pro-VI M"/>
         <typeface name="Kozuka Mincho Pro-VI R"/>
         <typeface name="Adobe Ming Std L"/>
         <typeface name="Adobe Song Std L"/>
         <typeface name="Adobe Myungjo Std M"/>
         <typeface name="Adobe Devanagari"/>
      </typefaces>
   </locale>
</localeSet>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.4-c005 78.150055, 2013/08/07-22:58:47        ">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
      <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:pdf="http://ns.adobe.com/pdf/1.3/" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:desc="http://ns.adobe.com/xfa/promoted-desc/" rdf:about="">
         <xmp:MetadataDate>2017-12-18T18:59:56Z</xmp:MetadataDate>
         <xmp:CreatorTool>Designer 6.2</xmp:CreatorTool>
         <pdf:Producer>Designer 6.2</pdf:Producer>
         <xmpMM:DocumentID>uuid:5b081fab-1370-4686-87c2-6381251d4833</xmpMM:DocumentID>
         <desc:version rdf:parseType="Resource">
            <rdf:value>6.2.0.20160331.1.924316.921890</rdf:value>
            <desc:ref>/template/subform[1]</desc:ref>
         </desc:version>
      </rdf:Description>
   </rdf:RDF>
</x:xmpmeta></xdp:xdp>
