Main

November 23, 2007

The Assembler sample application

Another useful web application, included in the Livecycle SDK, but not automatically deployed is the Assembler sample application.

The Livecycle ES Assembler service can assemble multiple PDF documents into one PDF document or disassemble one PDF document into multiple PDF documents. The Assembler service can manipulate documents in various ways such as changing page size and rotating contents. It can insert additional content such as headers, footers, and a table of contents, as well as preserve, import or export existing content such as annotations, file attachments, and bookmarks.

You use an XML-based language called Document Description XML (DDX), to interact with the Assembler service. Find more info on DDX in the LiveCycle ES SDK documentation.

The Assembler sample application gives you an interface to test your DDX files, which improves productivity.

image

Fill in your DDX, link the input files you use to files on your file system, and the execute button will invoke the Assembler service and show you the generated PDF on the left side.

You can find the Assembler sample application EAR in the SDK folder ...

C:\Adobe\LiveCycle8\LiveCycle_ES_SDK\samples\PDFAssembler\WebApp\pre-built

Deploy the EAR file, and you'll be able to access this information through this url :

http://localhost:8080/adobe/livecycle/samples/assembler/

October 1, 2007

Accessing LiveCycle ES Lists & Maps from .Net

With Adobe LiveCycle ES we now have access to several complex, open ended data structures.

Two of the most commonly used, list and map, don’t translate well trough web services when they contain other complex types. These structures are based on underlying Java classes (java.util.list and java.util.HashMap). They are incredibly useful, but can present problems when accessing LiveCycle ES workflows through web services. For example lists of documents and maps of documents get converted to arrays of complex types in the SOAP message.

So if you are writing a client application that will use a LiveCycle ES service (that returns one of these complex types) how do you access their contents?

Scenario
Let’s look at a concrete example to illustrate one way that this can be done:
A Microsoft .Net C# client needs to access an Adobe LiveCycle ES workflow through a web service. The LiveCycle ES workflow will return both a list of documents and a map of documents. The C# application needs to access the PDFs stored in the documents.

Attachments
Complete instructions: A PDF file with a complete description of the solution (way to long for this blog)
Instructions PDF
C# source code: (File is encrypted to avoid the virus checker - the password is: password) Source Code
LiveCycle ES Archive: LCA File