suda Senior Java EE Develope specialises in Pdf forms , Fonts, application servers and Image manipulation, meditates in spare time.

PDF XFA – Sending data as an Email

55 sec read

This simple article explains how to send XFA form data as an email in two possible ways.

Why does the client need to send data as email?

If your clients use Adobe Reader instead of Adobe Acrobat Pro, they cannot save the filled forms, so therefore posting the data or sending via email are the only possibilities they have.

Option 1: [Adjust XML source to send email]

Create a text field and a quantity field called product and quantity.At this stage, you then insert an email Submit button which can be obtained from Object Library.

<subform w=”576pt” h=”756pt”>
<field name=”product” y=”9.525mm” x=”6.35mm” w=”62mm” h=”9mm”>
…….//other stuff goes here
</field>
<field name=”quantity” y=”22.225mm” x=”6.35mm” w=”62mm” h=”9mm”>
…….//other stuff goes here
</field>
<field name=”EmailSubmitButton1″ y=”38.1mm” x=”6.35mm” w=”34.925mm” h=”6mm”>
<event name=”event__click” activity=”click”>
…//other stuff goes here
<submit format=”xml” textEncoding=”UTF-8″ target=”mailto:”/>
</event>
</field>
</subform>

Once you have created the form you just need to alter the value of the target attribute to your target email address.

Example:

<submit format=”xml” textEncoding=”UTF-8″ target=”mailto:iam@myemail.com“/>

Option 2 : [ use field tab under object tab ]

Another simple way is to use the field properties and alter the email address to your target address. See the screenshot below:

emailxfa

Now you can save the form as PDF and start sending emails.

IDRsolutions develop a Java PDF Viewer and SDK, an Adobe forms to HTML5 forms converter, a PDF to HTML5 converter and a Java ImageIO replacement. On the blog our team post anything interesting they learn about.

suda Senior Java EE Develope specialises in Pdf forms , Fonts, application servers and Image manipulation, meditates in spare time.

Enabling SVG Gzip Compression on Apache and NGINX

Gzip compression is a widely supported method of reducing the size of the content sent from a web server in order to improve the...
Leon Atherton
47 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *

IDRsolutions Ltd 2019. All rights reserved.