Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

How do I submit a form as e-mail in xml and pdf form?

Avatar

Former Community Member

Hi,

can I set up the submit button to send the form data as xml and also include a copy of the filled out pdf-form?

I can make it work whith either xml-file or pdf-form, but not both at the same time.

Hope anyone can help.

K

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

You can choose an XDP format. This is a packaging format that allows you to choose what you want to submit. Make sure that you pick the PDF as one of the options to submit. This will add a data note call PDF into the data and will base64 encode the form for transmission. You will have to massage the XDP to retrieve the PDF from that node and Base 64 decode it.

This format is used in submissions to server products. If you do not have a program to recieve the XDP and sub divide it, then you will have to do two separate transmissions.

Paul

View solution in original post

8 Replies

Avatar

Correct answer by
Former Community Member

You can choose an XDP format. This is a packaging format that allows you to choose what you want to submit. Make sure that you pick the PDF as one of the options to submit. This will add a data note call PDF into the data and will base64 encode the form for transmission. You will have to massage the XDP to retrieve the PDF from that node and Base 64 decode it.

This format is used in submissions to server products. If you do not have a program to recieve the XDP and sub divide it, then you will have to do two separate transmissions.

Paul

Avatar

Former Community Member

Hi Paul

Thanks for the answer. Not what I hoped for, but I have to live with that.

Can you tell me what program I can use på recieve an XDP file?

K

Avatar

Former Community Member

An XDP file is simply xml. It stands for XML data package. So typically you submit the XDP to a server and a program on the server will take it apart.

Paul

Avatar

Former Community Member

Instead of using an xdp-file, would it be possible to merge an xml-file submitted by a client into a blank pdf form, and make it look exactly like it did at the client's screen?

K

Avatar

Former Community Member

Yes ....there is a server based product called LiveCycle Forms which will do that for you. Or you coudl simply import the data file into the blank form.

Paul

Avatar

Former Community Member

And back to the XDP file. Which server based program could I use to take the XDP file apart?

Avatar

Former Community Member

It is simply XML so any xml parsing program ...typically loading it into a DOM will make life easy. At worst case you could use any server program to parse it.

Paul

Avatar

Former Community Member

I know I can import data to a blank form in Acrobat Pro. Is it possible to call Acrobat from the command prompt?

It would be really fine, if we could make Acrobat work together with our in house systems. Or is there another way to import data to a blank form?

As I see it LiveCycle Forms is not an option, because the form data will be handled in a closed enviroment.

K

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----