Help needed w/ PDF form submit with attatchments

87 views
Skip to first unread message

Anthony DeBonis

unread,
Dec 24, 2009, 12:20:59 PM12/24/09
to Adobe LiveCycle Developers

Has anyone had any luck submitting an offline PDF as XDP XML Data
Package (XDP Allows you to send the document and its components as an
XML package )

We are stuck and no one has documented this and support does not seam
to understand this either.

We can post the form to a servlet and get the bit stream but can not
pull out the XDP. There is an XDPXFAHelper class supplied with LC but
no one knows what JAR its in.

The form will have attachments that we need to run virus scan on and
many other function once we can parse the package out.

Any help you can provide would be greatly appreciated.

Happy Holidays,

Anthony

Duane Nickull

unread,
Dec 24, 2009, 1:15:38 PM12/24/09
to Adobe LiveCycle Developers
   com.adobe.livecycle.formdataintegration.client

Specifically, the public method exportData(Document PDFReference) will export the data from a form.  I cannot remember which jar it is in but it shouldn’t be hard to find out in eclipse.

D
--

You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.




---
Adobe LiveCycle Enterprise Architecture - http://www.adobe.com/products/livecycle/
My TV Show - http://tv.adobe.com/show/duanes-world/
My Blog – http://technoracle.blogspot.com/
My Band – http://22ndcenturyofficial.com/
Twitter – http://twitter.com/duanechaos

tarekahf

unread,
Dec 24, 2009, 4:56:59 PM12/24/09
to Adobe LiveCycle Developers
I have done something similar but in ASP.NET, check details here:

http://forums.adobe.com/thread/335131

Sorry, its a long thread ! Hope you can find some info which might
help you.

Tarek.

On Dec 24, 8:15 pm, Duane Nickull <dnick...@adobe.com> wrote:
> com.adobe.livecycle.formdataintegration.client
>
> Specifically, the public method exportData(Document PDFReference) will export the data from a form. I cannot remember which jar it is in but it shouldn't be hard to find out in eclipse.
>
> D
>

> On 12/24/09 9:20 AM, "Anthony DeBonis" <atdebo...@gmail.com> wrote:
>
> Has anyone had any luck submitting an offline PDF as XDP XML Data
> Package (XDP Allows you to send the document and its components as an
> XML package )
>
> We are stuck and no one has documented this and support does not seam
> to understand this either.
>
> We can post the form to a servlet and get the bit stream but can not
> pull out the XDP. There is an XDPXFAHelper class supplied with LC but
> no one knows what JAR its in.
>
> The form will have attachments that we need to run virus scan on and
> many other function once we can parse the package out.
>
> Any help you can provide would be greatly appreciated.
>
> Happy Holidays,
>
> Anthony
>
> --
>
> You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
> To post to this group, send email to live...@googlegroups.com.
> To unsubscribe from this group, send email to livecycle+...@googlegroups.com.

> For more options, visit this group athttp://groups.google.com/group/livecycle?hl=en.


>
> ---
> Adobe LiveCycle Enterprise Architecture -http://www.adobe.com/products/livecycle/
> My TV Show -http://tv.adobe.com/show/duanes-world/

> My Blog -http://technoracle.blogspot.com/
> My Band -http://22ndcenturyofficial.com/
> Twitter -http://twitter.com/duanechaos

KHinch

unread,
Dec 25, 2009, 1:19:39 AM12/25/09
to Adobe LiveCycle Developers
If embedding attachment data on Submit as a Base64 Encoded String on
Submit will meet your requirements, check out the following post by
John Brinkman

http://blogs.adobe.com/formfeed/2009/08/base64_encode_a_pdf_attachment.html

Your service consuming the XML reads the attachment data from a node
in the XDP and then hex encodes the data back to its original state,
ready for your processing.


This group rocks! Merry Christmas and Happy Holidays to all!

-Kasey

ArvindJ

unread,
Jan 9, 2010, 7:38:30 AM1/9/10
to Adobe LiveCycle Developers
Hi Kasey,

Are you suggesting that the attachments be encoded as Base64 String,
assigned to a (potentially) hidden field on the form and thus will
become part of the xdp submit ?

I have been working on processing xdp submission via a servlet and
consistently get ZERO attachment count in my code. Can someone confirm
that attachments are not supported in xdp submit for now?

Arvind


On Dec 25 2009, 11:19 am, KHinch <kasey.hinch...@gmail.com> wrote:
> If embedding attachment data on Submit as a Base64 Encoded String on
> Submit will meet your requirements, check out the following post by
> John Brinkman
>

> http://blogs.adobe.com/formfeed/2009/08/base64_encode_a_pdf_attachmen...


>
> Your service consuming the XML reads the attachment data from a node

> in theXDPand then hex encodes the data back to its original state,


> ready for your processing.
>
> This group rocks! Merry Christmas and Happy Holidays to all!
>
> -Kasey
>
> On Dec 24, 9:20 am, Anthony DeBonis <atdebo...@gmail.com> wrote:
>
>
>
> > Has anyone had any luck submitting an offline PDF asXDP XML Data

> > Package (XDPAllows you to send the document and its components as an


> > XML package )
>
> > We are stuck and no one has documented this and support does not seam
> > to understand this either.
>
> > We can post the form to a servlet and get the bit stream but can not

> > pull out theXDP.  There is an XDPXFAHelper class supplied with LC but


> > no one knows what JAR its in.
>
> > The form will have attachments that we need to run virus scan on and
> > many other function once we can parse the package out.
>
> > Any help you can provide would be greatly appreciated.
>
> > Happy Holidays,
>

> > Anthony- Hide quoted text -
>
> - Show quoted text -

KHinch

unread,
Jan 13, 2010, 1:28:35 PM1/13/10
to Adobe LiveCycle Developers
> Are you suggesting that the attachments be encoded as Base64 String,
> assigned to a (potentially) hidden field on the form and thus will
> become part of the xdp submit ?

Yes. The easiest way to set this up would be to write the Base64
encoded string to a field bound to your schema (if working with data
bindings). If you need support for multiple attachments, you can wrap
your attachment data field around a repeatable subform.

I use the following script to grab and store attachment names to my
document on submit. You could try something very similar to store
attachement data:
"attachmentData" is a flowed subform
"attachment" is a repeatable subform (min instances=1)
"attachedDCMstring" is a text field

if you have multiple attachments, access to this data via xpath would
go: //attachmentData/attachment[x]/attachedDCMstring

function createAttachList(){

//Reset the List
adminPage.attachmentData._attachment.setInstances(1);
adminPage.attachmentData.attachment.attachedDCMstring.rawValue = "";

//get the attachments
dcm = event.target.dataObjects;
n = dcm.length;

for( i = 0; i < n; i++ ){

if(i==0){
//for the first attachment, no need to create
more subforms
adminPage.attachmentData.attachment.attachedDCMstring.rawValue = dcm
[i].name;
}else{
//create a new instance of the 'attachment'
subform and write the attachment's name to the text field inside it.
var addDCM = adminPage.attachmentData._attachment.addInstance(1);
addDCM.attachedDCMstring.rawValue = dcm[i].name;

Anthony DeBonis

unread,
Feb 5, 2010, 12:31:00 PM2/5/10
to Adobe LiveCycle Developers
Update: We ended up posting to a Servlet that runs a virus scan then
write the PDF w/ Attachments to a Watch Folder that LiveCycle is
watching. A Watch Folder is a standard LC end point... in this case
starting point for a process. At first I though no way but once you
see how its implemented its worth checking out. LC picks up the file
very fast and kicks off any process tied to the watch folder and once
in the LiveCycle process you can get at your PDF form data and
attachments. IF something happened there is a failure directory
structure created for each day and a sub folder for each file that
preservers the input/output and log of what happened... so this part
of it was designed well and it may help you out if you need it. It
can also do the same thing for successfully process completion to
store any artifacts that were output.

Duane Nickull

unread,
Feb 5, 2010, 4:23:10 PM2/5/10
to Adobe LiveCycle Developers
Very cool!  I would love to see more details.  I suspect a number of people might need something similar to this.

Duane
--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To post to this group, send email to live...@googlegroups.com.
To unsubscribe from this group, send email to livecycle+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/livecycle?hl=en.



---
Reply all
Reply to author
Forward
0 new messages