Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Save PDF or Get XML of Unbound Form Data

Avatar

Former Community Member

Greetings,

We're working on a project where we have a LiveCycle form that is bound to a schema.  We also have access to LiveCycle ES Forms and ES Output services.

When a LiveCycle form is accessed, we send our current applications XML and the Form Template to the ES Forms service, to get our partially filled-out LiveCycle form for end-user display.

The user then fills-in any remaining information and "Saves" the form, at which point we extract the XML using XFA locally (with SaveXML()) to write any changes to the database.

Here is the issue we're having -

We need to be able to take a copy of the filled-out PDF file to save it (all user-entered data included) to a file share, so we have a complete record of the form information that was filled out.  Some of the fields on these forms are not bound to our schema, because they might be fields that don't exist in our database, but still need to be filled-out on the form and saved to PDF.

The SaveXML() only returns schema-bound fields, so if we call the Output service with the original template and our XML result, we don't have any of the unbound fields.  Additionally, our users are using Acrobat Reader, so they're not able to "Save forms with data".

Given the services we have available, and LiveCycle's capabilities - what can we do to "Save PDF"... just so we can capture that entire PDF file that was filled-out by a user??

Thanks in advance for any guidance,


GS

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Nope need RE for that too! It is part of the same right.

Paul

View solution in original post

5 Replies

Avatar

Former Community Member

You will need to Reader Extend the PDF to allow Reader to save a file locally. In your scenario where you are rendering the PDF from Forms you will need the Reader Extensions Server and you woudl merely Reader Extend the file before rendering it to the user. There is an option in Acrobat to Reader Extend and it will turn on the right to save locally but in your case you are dyna,ically creating the PDF out f the XDP on the fly.

Paul

Avatar

Former Community Member

Hi Paul,


Thanks a lot!  I will look into reader extending the document (hoping we have this service already as-well) and report back on how it goes -

GS

Avatar

Former Community Member

Actually, come to think of it - we don't need them to save the file locally.  The server can be responsible for saving the file, so it may not be necessary to Reader-Extend assuming we can get the information that is being submitted.  Do any of the "Submit" capabilities presented by the Forms Service rendered PDF, which would send back to a server include the capability to retreive the entire PDF including form-filled fields?

Thanks again!

GS

Avatar

Correct answer by
Former Community Member

Nope need RE for that too! It is part of the same right.

Paul

Avatar

Former Community Member

Great, thanks!

Much easier getting a straight answer than trying to figure it out with the 10's of thousands of pages of documentation floating around

GS

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] ----