Expand my Community achievements bar.

How to generate PDF from template via REST query

Avatar

Former Community Member

Hello. I'm newbie in Adobe LiveCycle, will appreciate any help.

What we need: generate PDF from template, using different data.

What we have: LiveCycle Designer and server with deployed Adobe LiveCycle ES 2.5 image.

Looks like server works and listen 8080.

In Livecycle Designer I can generate XML (XDP) from PDF, so I can change this XML in PHP/Python/Go script to fill template with data.

I'm looking for some REST method, where I can give that XML (XDP) and recieve generated PDF in response.

I've spent whole to for googling all these things, found a lot of docs, but all is very complicated there. Also, examples from just doesn't work - maybe I have to do something on server before calling REST API method.

Please, push me into right direction

1 Reply

Avatar

Level 2

Your best bet is to probably create an orchestration (or "process" in Adobe speak) that accepts two document parameters, calls LiveCycle Forms (or Output depending on whether you want to interactive or non-interactive PDF), and returns the resulting document variable.

The orchestration will return a redirect that will point you to the document object.

See Invoking LiveCycle using REST Requests, and Creating Your First LiveCycle ES4 Application.

Rob