Email as both PDF & XML

Avatar

Avatar

brlnthomp

Avatar

brlnthomp

brlnthomp

11-04-2018

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

radzmar

MVP

Total Posts

2.6K

Likes

385

Correct Answer

485

Avatar

radzmar

MVP

Total Posts

2.6K

Likes

385

Correct Answer

485
radzmar
MVP

12-04-2018

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

Answers (3)

Answers (3)

Avatar

Avatar

radzmar

MVP

Total Posts

2.6K

Likes

385

Correct Answer

485

Avatar

radzmar

MVP

Total Posts

2.6K

Likes

385

Correct Answer

485
radzmar
MVP

12-04-2018

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.

Avatar

Avatar

brlnthomp

Avatar

brlnthomp

brlnthomp

12-04-2018

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

Avatar

try67

Avatar

try67

try67

11-04-2018

[Question moved to the LiveCycle Designer forum]