chregu          Fri Mar 30 04:55:07 2001 EDT

  Modified files:              
    /php4/pear/Experimental/XML fo2pdf.php 
  Log:
  printPDF() din't print out the correct header, if no pdf was specified
  
  
Index: php4/pear/Experimental/XML/fo2pdf.php
diff -u php4/pear/Experimental/XML/fo2pdf.php:1.4 
php4/pear/Experimental/XML/fo2pdf.php:1.5
--- php4/pear/Experimental/XML/fo2pdf.php:1.4   Thu Mar 29 13:26:53 2001
+++ php4/pear/Experimental/XML/fo2pdf.php       Fri Mar 30 04:55:07 2001
@@ -15,7 +15,7 @@
 // | Authors: Christian Stocker <[EMAIL PROTECTED]>                         |
 // +----------------------------------------------------------------------+
 //
-// $Id: fo2pdf.php,v 1.4 2001/03/29 21:26:53 uw Exp $
+// $Id: fo2pdf.php,v 1.5 2001/03/30 12:55:07 chregu Exp $
 
 
 /**
@@ -84,7 +84,7 @@
 *    print $cache->end("+30");
 *
 * @author   Christian Stocker <[EMAIL PROTECTED]>
-* @version  $Id: fo2pdf.php,v 1.4 2001/03/29 21:26:53 uw Exp $
+* @version  $Id: fo2pdf.php,v 1.5 2001/03/30 12:55:07 chregu Exp $
 * @package  XML
 */
 
@@ -246,8 +246,9 @@
        */
        function  printPDF($pdf = "")
        {
+               $pdf = $this->returnPDF($pdf);
                Header("Content-type: application/pdf\nContent-Length: " . 
strlen($pdf));
-               print $this->returnPDF($pdf);
+               print $pdf;
        }
 
        /**
@@ -260,7 +261,7 @@
        * @see run()
        */
        function returnPDF($pdf = "")
-    {
+       {
           if (!$pdf)
                   $pdf = $this->pdf;
 
@@ -271,4 +272,4 @@
     }
 
 }
-?>
\ No newline at end of file
+?>



-- 
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]

Reply via email to