--- C:/tmp/Pdf.old.php Thu Dec 16 13:25:52 2010 +++ C:/tmp/Pdf.php Thu Dec 16 13:49:31 2010 @@ -275,6 +275,9 @@ throw new Zend_Pdf_Exception( "Can not open '$filename' file for writing." ); } + if ($updateOnly && !file_exists($filename)) { + $updateOnly = false; + } $this->render($updateOnly, $file); fclose($file);