Expand my Community achievements bar.

SOLVED

Populate fields from a php script

Avatar

Former Community Member

Hi,

I am trying to populate text fields from a PHP script right into Acrobat Reader.

Lets not talk about database just yet, I just want to know how to take a variable in PHP right to the livecycle designer form.

I have seen many things like submitform(), using http posts, etc but I cant get it to work.

Thank you in advance.

1 Accepted Solution

Avatar

Correct answer by
Level 10

If you want to fill the LiveCycle Designer form, then you need to render it with the datafile.

The datafile can be an XML file or a webservice or Database.

You cannot directly fill the PDF from a PHP script. What you can do is, have a LiveCycle Process created in Workbench and then invoke the Process from PHP application by passing the information. The Livecycle process will merge the data with the template and return the PDF to the client application.

There is an other feature in Acrobat PRO that you can import an XML file directly into a PDF but that is a manual effort. You can not link that to a PHP Script.

Thanks

Srini

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

If you want to fill the LiveCycle Designer form, then you need to render it with the datafile.

The datafile can be an XML file or a webservice or Database.

You cannot directly fill the PDF from a PHP script. What you can do is, have a LiveCycle Process created in Workbench and then invoke the Process from PHP application by passing the information. The Livecycle process will merge the data with the template and return the PDF to the client application.

There is an other feature in Acrobat PRO that you can import an XML file directly into a PDF but that is a manual effort. You can not link that to a PHP Script.

Thanks

Srini