Example: Simple Adobe Form
Copy the XML source, paste it in a text editor, and save it as a file with extension XDP.
<?xml version="1.0" encoding="UTF-8"?> <?xfa generator="AdobeDesigner_V6.0_SAP" APIVersion="1.4.4348.0"?> <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2005-11-02T11:31:40Z" uuid="385721dc-4b80-4b70-86bb-6e7c49833400"> <template xmlns="http://www.xfa.org/schema/xfa-template/2.1/"> <subform name="form1" layout="tb"> <pageSet> <pageArea name="Page1" id="Page1"> <contentArea x="0.25in" y="0.25in" w="197.3mm" h="284.3mm"/> <medium stock="a4" short="210mm" long="297mm"/> </pageArea> </pageSet> <subform w="197.3mm" h="284.3mm"> <draw name="StaticText1" y="1.4834mm" x="5.644mm" w="45.1871mm" h="9.8718mm"> <ui> <textEdit> <margin/> </textEdit> </ui> <value> <text>Application Data</text> </value> <font typeface="Arial" posture="italic" size="14pt" 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> <draw name="Line1" y="14.4474mm" x="5.0634mm" w="167.1659mm" h="0.3034mm"> <value> <line slope="/"> <edge thickness="0.381mm"/> </line> </value> </draw> <draw name="StaticText3" y="22.1606mm" x="5.8944mm" w="26.9316mm" h="5.8965mm"> <ui> <textEdit> <margin/> </textEdit> </ui> <value> <text>Basic Data</text> </value> <font typeface="Arial" weight="bold" 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> <draw name="StaticText3" y="86.0708mm" x="5.644mm" w="33.1303mm" h="5.8965mm"> <ui> <textEdit> <margin/> </textEdit> </ui> <value> <text>Language Skills</text> </value> <font typeface="Arial" weight="bold" 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="CommentField" y="162.7202mm" x="6.35mm" w="182.1686mm" h="77.6136mm" access="readOnly"> <ui> <textEdit multiLine="1"> <border> <edge stroke="lowered"/> <edge stroke="lowered"/> <edge stroke="lowered"/> <edge stroke="lowered"/> </border> <margin/> </textEdit> </ui> <font typeface="Arial"/> <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/> <para vAlign="middle"/> <caption reserve="0in"> <font typeface="Arial"/> <para vAlign="middle"/> </caption> <bind match="none"/> </field> <draw name="StaticText4" y="150.2844mm" x="5.3482mm" w="96.6925mm" h="7.1063mm"> <ui> <textEdit> <margin/> </textEdit> </ui> <value> <text>Please, enter your comments in the field below.</text> </value> <font typeface="Arial" weight="bold" 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="Button1" y="262.667mm" x="167.4021mm" w="22.2917mm" h="7.0016mm"> <ui> <button/> </ui> <font typeface="Arial"/> <caption> <value> <text>Submit</text> </value> <para vAlign="middle" hAlign="center"/> <font typeface="Arial"/> </caption> <border hand="right"> <edge stroke="raised"/> <fill> <color value="212,208,200"/> </fill> <edge stroke="raised"/> <edge stroke="raised"/> <edge stroke="raised"/> </border> <bind match="none"/> <event activity="click"> <submit format="xml" textEncoding="UTF-8" target="%com.sap.caf.gp.if.PostProcessorUrl%"/> </event> </field> <field name="FirstName" y="34.1302mm" x="5.82mm" w="84.9302mm" h="9mm"> <ui> <textEdit> <border> <edge stroke="lowered"/> </border> <margin/> </textEdit> </ui> <font typeface="Arial"/> <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/> <para vAlign="middle"/> <caption reserve="18.26mm"> <font typeface="Arial"/> <para vAlign="middle"/> <value> <text>First Name</text> </value> </caption> </field> <field name="LastName" y="47.8901mm" x="5.8201mm" w="85.1999mm" h="9mm"> <ui> <textEdit> <border> <edge stroke="lowered"/> <edge stroke="lowered"/> <edge stroke="lowered"/> <edge stroke="lowered"/> </border> <margin/> </textEdit> </ui> <font typeface="Arial"/> <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/> <para vAlign="middle"/> <caption reserve="18.26mm"> <font typeface="Arial"/> <para vAlign="middle"/> <value> <text>Last Name</text> </value> </caption> </field> <field name="Education" y="61.12mm" x="6.0902mm" w="84.93mm" h="9.0001mm"> <ui> <textEdit> <border> <edge stroke="lowered"/> <edge stroke="lowered"/> <edge stroke="lowered"/> <edge stroke="lowered"/> </border> <margin/> </textEdit> </ui> <font typeface="Arial"/> <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/> <para vAlign="middle"/> <caption reserve="18.26mm"> <font typeface="Arial"/> <para vAlign="middle"/> <value> <text>Education</text> </value> </caption> </field> <field name="English" y="99.48mm" x="5.82mm" w="85.4599mm" h="9.0001mm"> <ui> <textEdit> <border> <edge stroke="lowered"/> <edge stroke="lowered"/> <edge stroke="lowered"/> <edge stroke="lowered"/> </border> <margin/> </textEdit> </ui> <font typeface="Arial"/> <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/> <para vAlign="middle"/> <caption reserve="18.26mm"> <font typeface="Arial"/> <para vAlign="middle"/> <value> <text>English</text> </value> </caption> </field> <field name="German" y="112.71mm" x="5.56mm" w="85.7199mm" h="9mm"> <ui> <textEdit> <border> <edge stroke="lowered"/> <edge stroke="lowered"/> <edge stroke="lowered"/> <edge stroke="lowered"/> </border> <margin/> </textEdit> </ui> <font typeface="Arial"/> <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/> <para vAlign="middle"/> <caption reserve="18.26mm"> <font typeface="Arial"/> <para vAlign="middle"/> <value> <text>German</text> </value> </caption> </field> <field name="Other" y="126.74mm" x="5.5601mm" w="85.9899mm" h="9.0001mm"> <ui> <textEdit> <border> <edge stroke="lowered"/> <edge stroke="lowered"/> <edge stroke="lowered"/> <edge stroke="lowered"/> </border> <margin/> </textEdit> </ui> <font typeface="Arial"/> <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/> <para vAlign="middle"/> <caption reserve="18.26mm"> <font typeface="Arial"/> <para vAlign="middle"/> <value> <text>Other</text> </value> </caption> </field> </subform> <proto/> </subform> <?templateDesigner DefaultLanguage FormCalc?> <?templateDesigner DefaultRunAt client?> <?templateDesigner XDCFile acrobat6.xdc?> <?templateDesigner Grid show:0, snap:0, units:1, color:ff8080, origin:(0,0), interval:(125000,125000)?> <?templateDesigner Rulers horizontal:1, vertical:1, guidelines:1, crosshairs:0?> <?templateDesigner Zoom 68?></template> <config xmlns="http://www.xfa.org/schema/xci/1.0/" xmlns:xfa="http://www.xfa.org/schema/xci/1.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> </fontInfo> </pdf> <xdp> <packets>*</packets> </xdp> </present> </config> <sourceSet xmlns="http://www.xfa.org/schema/xfa-source-set/1.0/"/> <connectionSet xmlns="http://www.xfa.org/schema/xfa-connection-set/2.1/"/> <xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"> <xfa:data xfa:dataNode="dataGroup"/> </xfa:datasets> </xdp:xdp> |