Expand my Community achievements bar.

Dynamically flatten, rename and attach a form to an email message

Avatar

Level 2

I've had no luck in the past three weeks trying to figure this out...

Is it possible to flatten (or use an Adobe PDF printed file), rename and attach a dyamic LiveCycle form to email using javascript?  I'm working on a purchase order that uses information in the form's fields to generate the email address, contact name, and message along with the attached form which will be sent to the vendor, but I am unable to change the the attachment name or flatten the form.

Any help would be appreciated.

Stefan

2 Replies

Avatar

Level 10

Hi,

it's just not possible to do this in one go I'm afraid.

Renaming the form requires to save it with a new name first.

Flattening is only possible by printing the form or by a special LivaCycle server module.

Avatar

Former Community Member

You could submit to a server-side script such as ASP.net, flatten with iText, and rename the attachment and send via SMTP.

For a live demo, see example #3:

http://www.pdfemail.net/examples/