Expand my Community achievements bar.

SOLVED

Email as both PDF & XML

Avatar

Level 1

I am creating an order form for a client. I need a button that, on click, creates both a PDF file and an XML data file and attaches both to the same email. So far, I am failing gloriously on coming up with something that works. I am currently working in Adobe LiveCycle Designer ES4. Any help would be greatly appreciated.

1 Accepted Solution

Avatar

Correct answer by
Level 10

It's not possible from a script, only by attaching the desired files manually to an email.

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

It's not possible from a script, only by attaching the desired files manually to an email.

Avatar

Level 1

So it is possible to do it through script for one or the other, but not for both. Would you mind explaining (if you know), why that is?

I really appreciate the effort. I am doing my best to learn. I am not new to JavaScript but I am new to LiveCycle Designer and it seems like I am probably going to be working with it a fair bit in the future. The more I know, the better. This was the only bit that really threw me on the project.

Avatar

Level 10

Why? Well, because the builtin scripting methods and APIs in Adobe Acrobat/Reader only handle a singe file.

Here's the documentation of Acrobats JavaScript API:
https://wwwimages2.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/AcrobatDC_js_api_reference.pdf


Here's the LiveCycle scripting reference:
https://help.adobe.com/en_US/livecycle/8.2/LiveCycle_Designer_Scripting_Basics.pdf

See table on page 85. It lists, what scripting methods from Acrobat JS API are used.