Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transfering Variables into a pdf

Status
Not open for further replies.

doccom

Technical User
Dec 20, 2003
12
US
I have a php based website that gathers a bunch of data and stores them into variables, how would i transfer this into an application that i scanned. the catch is that the application prints out has to be in the exact format, but filled with all the variable. Any help is appreciated. Thanks
 
When the form data is submitted, use PHP to programmatically create an FDF file (FDF files are ASCII, so this is easy to do).

In the FDF file, specify your "scanned application PDF" in the FDF's /F switch.

Return the FDF to the user, which will return the "merged" PDF.

You need to read up on the FDF spec for this all to make sense!


also see this reference




Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting
 
Thank you very much Tom, I managed to scour the web and found in the php manual on a separate page someone left some code on how to use my posted variables to create a fdf file. so i posted my application html form page to another php page which processed all http posts then opened the pdf file with the fdf i just created.

Here is the link to the webpage. Best part was that there was no need to add a toolkit or anything. Seeing how I don't have the authority to change the server this application is running makes a big difference.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top