For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > July 2004 > FDF/PDF









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author FDF/PDF
Jay Jarrett

2004-07-25, 3:55 am

I'm looking for information regarding FDF file generation using form output
from php.
What I would like to do is:

1. Enter information by form on a page via a browser.
2. Store this info in a MySQL database.
3.Call this info to populate a preexisting FDF file.
4. Output this back via browser by means of PDF.

For example: I would create a PDF of an invoice (or whatever), then make
form fields in the PDF using Acrobat, and export an FDF file.

%FDF-1.2
%âãÏÓ
1 0
obj<</FDF<</F(PDF_TEST.pdf)/ID[<6a45115bd7bdbd3cf8b98e9e1720e737><603ebdf0c8
fce94f8336817c6bf5df95>]/Fields[<</T(<Name> )/V(<variable_Name> )>><</T(<addre
ss> )/V(<variable_address> )>><</T(<info> )/V(<variable_info> )>><</T(<phone> )/V
(<variable_phone> )>>]>>>>
endobj
trailer
<</Root 1 0 R>>
%%EOF

The fields with "variable" in the name will be populated with user input
from PHP/MySQL.
I'm sure this is very simple, but I am very new to PHP, so go figure.
Basically, what I need is some help or examples on how to make form data
populate a database, save it there, place the data into the FDF file, then
save it to the server. Maybe even create the FDF file itself. I'm sure there
are a number of ways to accomplish what I am trying to do.

I have done this in Coldfusion, but I need this in PHP. Any and all help
and/or comments regarding this will be greatly appreciated.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com