Forum Moderators: coopster

Message Too Old, No Replies

fdf, checkboxes, email attachments Oh My!

         

jaybaker

6:01 am on Jan 3, 2009 (gmt 0)

10+ Year Member



Hello all, I have an app in which the user fills out a form and in the middle checks each appropriate checkbox, fills out the rest of the form and adds any other files to be attached to an email. The script is then to print two copies and produce an fdf file to be used with a pdf the site owner has. The fdf file and any attachments are then added to an array through reading in a directory to the array. Once done the files are attached and the email is sent. I am using Adobe Acrobat 8 Pro

Problem #1 Checked values on form get added correctly to the fdf file but dont get imported into the pdf when the file is open. It doesn't matter if one two or 10 are checked none of them go through to the pdf.

Problem #2 I am not sure if all attached files are being added to the array. I know however that the appropriate files are at least being saved/uploaded to the correct directory.

Problem #3 I get the email showing the test message, but all headers, etc that should be pulling in and attaching the files are showing up. See below output.

This is a multi-part message in MIME format.

--==Multipart_Boundary_xc1eaa36e285fada6ca4ee00496df2378x
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

test test

--==Multipart_Boundary_xc1eaa36e285fada6ca4ee00496df2378x
Content-Type: application/octet-stream;
name=""
Content-Disposition:attachment;
filename=""
Content-Transfer-Encoding: base64


-==Multipart_Boundary_xc1eaa36e285fada6ca4ee00496df2378x
Content-Type: application/octet-stream;
name="results/Adam_Bailik.fdf"
Content-Disposition:attachment;
filename="results/Adam_Bailik.fdf"
Content-Transfer-Encoding: base64


-==Multipart_Boundary_xc1eaa36e285fada6ca4ee00496df2378x
Content-Type: application/octet-stream;
name="results/Argentina.gif"
Content-Disposition:attachment;
filename="results/Argentina.gif"
Content-Transfer-Encoding: base64


-==Multipart_Boundary_xc1eaa36e285fada6ca4ee00496df2378x
Content-Type: application/octet-stream;
name="results/Australia.gif"
Content-Disposition:attachment;
filename="results/Australia.gif"
Content-Transfer-Encoding: base64


-==Multipart_Boundary_xc1eaa36e285fada6ca4ee00496df2378x
Content-Type: application/octet-stream;
name="results/Austria.gif"
Content-Disposition:attachment;
filename="results/Austria.gif"
Content-Transfer-Encoding: base64


-==Multipart_Boundary_xc1eaa36e285fada6ca4ee00496df2378x
Content-Type: application/octet-stream;
name="results/Belgium.gif"
Content-Disposition:attachment;
filename="results/Belgium.gif"
Content-Transfer-Encoding: base64


-==Multipart_Boundary_xc1eaa36e285fada6ca4ee00496df2378x-

Here is the script in which I am using to create the fdf file and attach the files. If you are willing to keep the information on the pdf confidential then I can send a zip file of everything.

eelixduppy

3:43 pm on Jan 6, 2009 (gmt 0)



How you doing with this? Get anywhere on your problems yet?

jaybaker

5:41 pm on Jan 6, 2009 (gmt 0)

10+ Year Member



everything but problem 1 is done

coopster

1:24 pm on Jan 7, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Are you certain the fdf is populated with corrected line endings and file endings?