Expand my Community achievements bar.

Pass/retrieve data to PDF form using php

Avatar

Level 1

Hi

We are trying to build an application that goes like this. 

Web based application.  Document template is uploaded.  User can open the template, fill in data, and save the form.  PHP , Mysql

We are stuck at the stage where we need to pass some data via php into the form and then extract the filled in data from the form via php.

Does anyone have a solution to this.

Thanks

Sam

zhhealthcare

3 Replies

Avatar

Level 2

Hi Sam,

On the template form,

     i. add a sub form,

     ii. take a button,

     iii. Select Button, goto Field tab in Object window, set control type to Submit,

     iv. Got to Submit tab set submit as XML Data (XML)

     v. On button click event call ur application, you will get form data in xml format.

For passing data to template you can pass it in xml format.

Not having much idea abt PHP, but we implemented same with Java.

Hope this will help you.

Avatar

Level 1

Thank you,

But that is not what I Was looking for.  I am sending FDF file to server, client side opens with FDF data in non-flat version.  When i give drop-xfa, the buttons dont work. 

Sam

Avatar

Former Community Member

Try googling "iText".

iText is JAVA based, and is capable of creating and manipulating FDF data.

For a Microsoft .net version, check out "iTextSharp", or "FDFToolkit.net"

Hope this helps...