Good Afternoon:
I am running a script on my intranet to populate a PDF form with data from a MySQL database.
Suddenly, it appears, I am getting differing levels of weirdness based on Acrobat Reader version.
Version 5 gives me a 'doesn't start with %PDF', Version 6 pushes some of the data, and Version 7 pushes nothing.
Here are the basics of my code...
$fdfdata = "%FDF-1.2\n%âãÏÓ\n";
$fdfdata .= "1 0 obj \n<< /FDF ";
$fdfdata .= "<< /Fields [\n";
$fdfdata.="<< /V ($line_total)/T (iTotal$i) >> ";
$fdfdata .= "]\n";
$fdfdata .= "/F (http://eww/order_form.pdf) >>";
$fdfdata .= ">>\nendobj\ntrailer\n<<\n/Root 1 0 R\n>>\n";
$fdfdata .= "%%EOF";
header ("Content-Type: application/vnd.fdf");
header ( "Content-Disposition: inline" );
print $fdfdata;
Any ideas?