Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Can I submit a form as a pdf to workbench ?

Avatar

Level 7

We are currently using email as a form of submission and it is making out exchange server extremely slow. I would like to know if forms can be submitted in any other way ?

I have been told HTTP is an alternative but I am not sure if this can be used to submit an entire PDF...

Can someone provide me more information.


Aditya

6 Replies

Avatar

Level 9

You can submit the entire PDF over HTTP.  You determine what gets submitted as part of the "Submit" button properties on the form.  You have the option to submit as:

XML Data Package (XDP)

PDF

XML Data (XML)

URL encoded data (http post)

Regards

Steve

Avatar

Level 7

Hi Steve - How would the server accept it ?

Do I need to change any settings or setup any endpoint ?

Aditya

Avatar

Level 9

Aditya

You need to submit the PDF to a Java servlet, then have the Java servlet invoke the LiveCycle process to "do something" with the submitted PDF. The following link discusses how to invoke LiveCycle from a Java servlet.

http://www.adobe.com/devnet/livecycle/articles/java_servlets.html

Regards

Steve

Avatar

Level 7

I tried to follow the instructions from the link but I am getting all sorts of errors I can't figure out.

Do you know any other source with more simpler steps that I can refer to ? All I want to do it submit a pdf to a servlet and maybe save it to a file system.


Aditya

Avatar

Level 9

Unfortunately, the information in the link I posted is the best resource I know of (with regards to invoking a LiveCycle service from a Java Servlet).  If all you want to do is write the PDF to the file system, then your Java Servlet could do this on it's own without invoking a LiveCycle process.

You would have to research the Java code required to do this.

Regards

Steve

Avatar

Level 10

Some additional resources:

LC ES Programmers Guide

http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/wwhelp.htm?...

Handling submitted forms using the Java API

http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/000345.html

Quick Start: Handling submitted forms using the Java API

http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/000080.html

The resources assume you are familiar with Java development tools like Eclipse. The original URL Steve provided includes step-by-step instructions to configure and enable Eclipse to find the LiveCycle ES Java libraries.

Steve