How do you retrieve PDF when passed to PHP script
Posted: Wed Aug 05, 2009 11:48 am
I have a pdf created that submits as a pdf - basically passing the completed pdf form in full.
What I would like is to allow the pdf to submit to a php script then have the php script grab that pdf and either save to a directory or mail an attachment using mail(). At first I assumed I could get the pdf as if it were directly uploaded, but seems it doesn't work that way and I haven't been able to find the correct php calls to grab it.
Reason I need this is the adobe email submit button requires the users to have an email client set up on their computer. For this form, many users will not have that so I need to be able to actually send it through the server as you would normally with a regular php or html form. But the filled in pdf is the absolute requirement to be emailed. (This is a patient form being sent to a doctor for a new electronic signature and filing system, which requires all forms to be received in pdf format.)
(I've had no luck with the fpdf, fpdi, or others. Really have no interest in continue to attempt with those.)
And for further info: I have the reader extensions enabled, the form is usable for filling out on adobe reader on any pc with unlimited use. I used Adobe Live Cycle Designer to create the form.
Thanks for any help,
Heather
What I would like is to allow the pdf to submit to a php script then have the php script grab that pdf and either save to a directory or mail an attachment using mail(). At first I assumed I could get the pdf as if it were directly uploaded, but seems it doesn't work that way and I haven't been able to find the correct php calls to grab it.
Reason I need this is the adobe email submit button requires the users to have an email client set up on their computer. For this form, many users will not have that so I need to be able to actually send it through the server as you would normally with a regular php or html form. But the filled in pdf is the absolute requirement to be emailed. (This is a patient form being sent to a doctor for a new electronic signature and filing system, which requires all forms to be received in pdf format.)
(I've had no luck with the fpdf, fpdi, or others. Really have no interest in continue to attempt with those.)
And for further info: I have the reader extensions enabled, the form is usable for filling out on adobe reader on any pc with unlimited use. I used Adobe Live Cycle Designer to create the form.
Thanks for any help,
Heather