Skip to main content
Participant
July 12, 2017
Question

PDF form to text in the body of an email

  • July 12, 2017
  • 2 replies
  • 6354 views

This is the scenario I have been given (I'm pretty sure you can't but I've been asked to research the possibility)

I download a fillable PDF form. I fill out the form and press the submit button to a specific email address. The person who receives the email it does not get the PDF form as an attachment but instead gets a regular text email with no attachment in which the content of the filled PDF is now the body of the email in text form.

Is this at all possible?

This topic has been closed for replies.

2 replies

NKOWA555
Inspiring
July 14, 2017

You could inject all the field values into a email message body using a script:

Visit the following website to help you create the script for the button:

fdftoolkit.net/email-pdf-mailto-generator.aspx

Note: When using the above tool, just use the field name enclosed in braces { } in the message body and it will generate the appropriate code.

For example: {Fieldname_01}

Example Script:

//Place this script in the buttons mouseUp JavaScript event 

//http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf#page=345 

//SUBMIT PDF FORMAT WITH ADOBE READER 

var url = "mailto:you@domain.com?subject=Message Subject Text&body=See attached file...\nField 1: " +  encodeURIComponent(this.getField("Fieldname_001").value) + "\nField 2: " +  encodeURIComponent(this.getField("Fieldname_002").value) + "\nField 3: " +  encodeURIComponent(this.getField("Fieldname_003").value) + "\nField 4: " +  encodeURIComponent(this.getField("Fieldname_004").value) + "&cc=&bcc="; 

var submitAs = "PDF";//PDF,FDF,XFDF,XDP,XML 

this.submitForm({cURL:url,cSubmitAs:submitAs}); 

try67
Community Expert
Community Expert
July 14, 2017

There's a character limit to using this method, though.

try67
Community Expert
Community Expert
July 12, 2017

Depends. What application is going to be used by the user to do it, and how long is the text you want to include as the message body?

Participant
July 12, 2017

That's my question. I think we're using adobe acrobat to make the form fillable. It also would be 2 pages long or so. We don't want to the people downloading and using the PDF to have to download additional software on their end to make it happen, preferably we'd rather download something on our end that makes the PDF's we receive into text format in the body of an email. We currently have Microsoft outlook as our email system. 

try67
Community Expert
Community Expert
July 12, 2017

If you want the email itself to only contain text then what's important is what the user​ will be using, not what you have... Unless they also have Acrobat, it's not possible.