public function testDump()
 {
     $factory = new Zend_Pdf_ElementFactory(1);
     $obj = new Zend_Pdf_Element_Object_Stream('some data', 55, 3, $factory);
     $this->assertEquals($obj->dump($factory), "55 3 obj \n<</Length 9 >>\nstream\nsome data\nendstream\nendobj\n");
 }
Ejemplo n.º 2
0
 /**
  * Generate new Zend_Pdf_Element_Object_Stream
  *
  * @todo Reusage of the freed object. It's not a support of new feature, but only improvement.
  *
  * @param mixed $objectValue
  * @return Zend_Pdf_Element_Object_Stream
  */
 public function newStreamObject($streamValue)
 {
     $obj = new Zend_Pdf_Element_Object_Stream($streamValue, $this->_objectCount++, 0, $this);
     $this->_modifiedObjects[$obj->getObjNum()] = $obj;
     return $obj;
 }
Ejemplo n.º 3
0
 /**
  * Generate new Zend_Pdf_Element_Object_Stream
  *
  * @todo Reusage of the freed object. It's not a support of new feature, but only improvement.
  *
  * @param mixed $objectValue
  * @return Zend_Pdf_Element_Object_Stream
  */
 public function newStreamObject($streamValue)
 {
     #require_once 'Zend/Pdf/Element/Object/Stream.php';
     $obj = new Zend_Pdf_Element_Object_Stream($streamValue, $this->_objectCount++, 0, $this);
     $this->_modifiedObjects[$obj->getObjNum()] = $obj;
     return $obj;
 }