diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Pdf/Resource/ContentStream.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Pdf/Resource/ContentStream.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,114 @@ +_bufferedContent .= $instructions; + return $this; + } + + /** + * Get current stream content + * + * @return string + */ + public function getInstructions() + { + $this->flush(); + return $this->_resource->value; + } + + /** + * Clear stream content. + * + * @return Zend_Pdf_Resource_ContentStream + */ + public function clear() + { + $this->_resource->value = ''; + $this->_bufferedContent = ''; + return $this; + } + + /** + * Flush buffered content + */ + public function flush() + { + $this->_resource->value .= $this->_bufferedContent; + $this->_bufferedContent = ''; + + return $this; + } +}