471,616 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,616 software developers and data experts.

PHP and Adobe FDF/PDF

I am trying to figure out how to do the following:

1. Upload an Adobe FDF to my server
2. read the field names out of the FDF into MySQL for future use
3. Generate an interview form based upon the fields read
4. write a permanent pdf to the server populating the fields

I can do the upload, I can write to the database and I can generate a
dynamic interview form based upon the fields read. The interaction
with an FDF and PDF are beyond me. Can someone point me in the right
direction to start this?

TIA
Jul 17 '05 #1
1 1999
nc
Matthew Speed wrote:

I am trying to figure out how to do the following:
I am assuming you have the FDF Toolkit installed on
your server and configured properly...
1. Upload an Adobe FDF to my server
2. read the field names out of the FDF into MySQL for future use
OK, let's pretend for simplicity that the FDF transmits
only one field called 'info'. So here's what you do:

$fdf = fdf_open_string($HTTP_FDF_DATA);
$info = mysql_escape_string(fdf_get_value($fdf, 'info'));
fdf_close($fdf);
mysql_query("INSERT INTO sometable SET info='$info'");
3. Generate an interview form based upon the fields read
4. write a permanent pdf to the server populating the fields

I can do the upload, I can write to the database and
I can generate a dynamic interview form based upon the
fields read. The interaction with an FDF and PDF are
beyond me.


For a good reason, for there is none. With FDF, all you
can do is manipulate pre-existing forms. You cannot make
a permanent (i.e., formless) PDF, unless you generate the
PDF from scratch using whatever PDF generation facility
you have (PDFlib, ClibPDF, FPDF, whatever).

Cheers,
NC

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Hank Reed | last post: by
2 posts views Thread by Andre L via AccessMonster.com | last post: by
1 post views Thread by MuZZy | last post: by
reply views Thread by s.danyal.k | last post: by
5 posts views Thread by ASP.NET explorer | last post: by
10 posts views Thread by Jules Winfield | last post: by
2 posts views Thread by =?Utf-8?B?SmVycnkgQw==?= | last post: by
1 post views Thread by XIAOLAOHU | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.