If anyone can help, please... I have a page that points to a PHP page that dynamically creates a pdf file using PDFlib. The page uses a link such as site.com/page.php?variable=value. That in turn executes the script that uses the variable/value to pull info from the db and generate the page. The result is that when you click the link you are prompted to save or open the document. By openning the document you are presented with the pdf by acrobat. This is seemless with Mozilla. However, on IE it hangs with the message "Getting File information:". If you try to save it you get another error. I have read some information indicating that the problem is with the length parameter not being sent. However, the page I'm using was off an example someone provided and it already has what seems to be the fix for page length. The code that creates the file is as follows...
$p = PDF_new(); if(PDF_open_file($p, "") == 0) { die("Error: ".PDF_get_errmsg($p)); } ...body goes here... PDF_end_page($p); PDF_close($p); $buf = PDF_get_buffer($p); $len = strlen($buf); header("Content-type: application/pdf"); header("Content-Length: $len"); header("Content-Disposition: inline; filename=filename.pdf"); print $buf; PDF_delete($p); Again, this is only a problem with m$ IE. I know this is one of the largest toolkits (PDFlib) in use for creating well defined printable documents so I can't believe that this is not a common problem or that I am doing something really wrong. Someone on PDFlib's mailing list once mentioned sending the document for download via "chunks" instead of getting the length except he wrote something in C/C++ to accomplish it in his app. Is there some way to tell the browser to accept via "chunks" in php? Does the above header look right for IE? Any help would be greatly appreciated... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php