CutePDF and PHP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a PDF form with fillable fields (done with CutePDF Professional
and CutePDF Form Filler) that I want to put on my site.  I set the
form's SUBMIT button properties to send the data in FDF format to
another php page (named recv.php), which will be set up to generate an
email with the fdf file as an attachment.

My problem is that I cannot "find" the FDF file with the php code!!

I assumed that it would be in a $_POST array, but no luck.  For
debugging purposes, recv.php currently has just the following code:


When I "Submit" from the form, recv.php prints a empty array.

But...if I change the PDF form's submit property to HTML format, the
data comes across just fine as a POST array.  But I wanted the data in
fdf format, as that can be easily reconstituted.

Can anyone here point out the errors?  I'm guessing I am missing
something basic, but I am too new to programming to see it.  The
CutePDF site has no clues for the clueless, like me, and Googling the
problem did not turn up a solution.


Re: CutePDF and PHP

hutch wrote:
Quoted text here. Click to load it

Sorry, my crystal ball is broken, so I have no idea what you're doing in
your code.

Did you try asking CutePDF support?  When dealing with a product, that's
usually the best place to start  They know their code better than anyone.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Re: CutePDF and PHP

hutch escribió:
Quoted text here. Click to load it

I've never worked with PDF forms but I'm pretty sure that there isn't
such thing as "PDF data format". When you send the data, you send the
data, not the PDF file itself. It's the same as when you send an HTML
form: you send a serialized version of the values you entered, not the
form itself. And, trust me, you don't want to parse a PDF file with PHP
to find embedded data.

-- - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web:
-- Mi web de humor al baño María:

Site Timeline