chregu Thu Mar 29 02:13:50 2001 EDT
Modified files:
/php4/pear/Experimental/XML fo2pdf.php
Log:
MSIE needs a Content-Length: Header to display pdfs correctly. so here it
is..
Index: php4/pear/Experimental/XML/fo2pdf.php
diff -u php4/pear/Experimental/XML/fo2pdf.php:1.2
php4/pear/Experimental/XML/fo2pdf.php:1.3
--- php4/pear/Experimental/XML/fo2pdf.php:1.2 Tue Mar 27 06:35:21 2001
+++ php4/pear/Experimental/XML/fo2pdf.php Thu Mar 29 02:13:50 2001
@@ -15,7 +15,7 @@
// | Authors: Christian Stocker <[EMAIL PROTECTED]> |
// +----------------------------------------------------------------------+
//
-// $Id: fo2pdf.php,v 1.2 2001/03/27 14:35:21 chregu Exp $
+// $Id: fo2pdf.php,v 1.3 2001/03/29 10:13:50 chregu Exp $
/**
@@ -84,7 +84,7 @@
* print $cache->end("+30");
*
* @author Christian Stocker <[EMAIL PROTECTED]>
-* @version $Id: fo2pdf.php,v 1.2 2001/03/27 14:35:21 chregu Exp $
+* @version $Id: fo2pdf.php,v 1.3 2001/03/29 10:13:50 chregu Exp $
* @package XML
*/
@@ -254,7 +254,7 @@
*/
function print_pdf($pdf="")
{
- Header("Content-type: application/pdf");
+ Header("Content-type: application/pdf\nContent-Length: ".strlen($pdf));
print $this->return_pdf($pdf);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]