diff -r bd595ad770fc -r 1c2f13fd785c web/enmi/Zend/Pdf/Resource/ContentStream.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/enmi/Zend/Pdf/Resource/ContentStream.php Thu Jan 20 19:30:54 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; + } +}