These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Plain text output

pwmedia
Registered: Nov 14 2011
Posts: 5

Hi there,
 
We made a form for our company and struggle with the export possibilities.
 
Is there a possibility to export the (acrobat-form) field data just as plain text?
We tried to achieve this but we're only able to export the data as an attachment.
 
We want to send the 'subject (of the field)' + the filled in data just as normal text inside the e-mail.
The export should looks like this:
 
Name:
Adress:
Place:
Phonenumber:
etc.
 
It would be perfect to also create the possibility to insert a subject for the e-mail as well.
 
I hope somebody can help me out...
Regards,
 
Paul

My Product Information:
Acrobat Pro 9.4.3, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2398
This can be achieved with a script. Do you have any experience in writing JavaScript code, specifically in Acrobat?

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

pwmedia
Registered: Nov 14 2011
Posts: 5
Hi Gilad,

Thanks for responding.
I'm not familiar with javascript in particular (i understand actionscript).

I now where to put the code but not how to write it :-(
Iff you can point me in some direction (maybe a tutorial or something) i think i can figure it out.

Hope you can help me.
Thanks so far.
Paul
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Hi Paul,

There are plenty of great tutorials on this website.
To learn more about JS core functionalities and syntax: http://w3schools.com/js/default.asp
Specific Acrobat JS reference: http://www.adobe.com/devnet/acrobat/javascript.php

For your purposes the methods you should use are either app.mailMsg() or the Document's method called mailDoc().
The former will just send a plain email. The latter will also attach the document itself to the email as an attachment. If the file is going to be used in Reader you will have to use that option, since the first only works in Acrobat.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

pwmedia
Registered: Nov 14 2011
Posts: 5
Thanks!
I will trie to figure it out...
Thanks for pointing me in the right direction!


try67
Expert
Registered: Oct 30 2008
Posts: 2398
If you don't manage, you can contact me personally by email.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

pwmedia
Registered: Nov 14 2011
Posts: 5
Perfect! Thanks so much.

pwmedia
Registered: Nov 14 2011
Posts: 5
Hi Gilad,

After a weekend of tutorials, testing and trying i've managed to create the output i want it to be.
What i'm trying to do (and can't figure out) is the next two things.

- i Want to use bold tags (like in HTML) in the e-mail output
- i Want to have the filled in pdf also attached in the email

If your offer still stands, i would be delighted if you can help me out...

try67
Expert
Registered: Oct 30 2008
Posts: 2398
Hi Paul,

The first (HTML tags in the email) is not possible.
The second (attaching the file) is possible.

The offer still stands, but you never replied to my email...

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com