function openObject() {
		//Helpers::dompdf_debug("trace", "Enter My_TCPDF.openObject(state = $this->state)");

		if ($this->state == 2) {
			$curr_buffer = $this->getPageBuffer($this->page);
		}
		else {
			$curr_buffer = $this->getBuffer();
		}

		$this->dompdf_num_stack++;
		$this->dompdf_stack[$this->dompdf_num_stack] = array('c' => $curr_buffer, 'p' => $this->page, 'g' => $this->getGraphicVars());

		//Helpers::dompdf_debug("trace", "---------> " . $curr_buffer);

		if ($this->state == 2) {
			$this->setPageBuffer($this->page, '');
		}
		else {
			$this->buffer = '';
			$this->bufferlen = strlen($this->buffer);
		}
		$this->page = 1;	// some output is not done if page = 0 (e.g SetDrawColor())

		$this->dompdf_num_objects++;
		$this->dompdf_objects[$this->dompdf_num_objects] = array('c' => '', 'p' => 0, 'g' => null);

		return $this->dompdf_num_objects;
	}
function openObject() {
		//Helpers::dompdf_debug("trace", "Enter My_TCPDF.openObject(state = $this->state)");

		if ($this->state == 2) {
			$curr_buffer = $this->getPageBuffer($this->page);
		}
		else {
			$curr_buffer = $this->getBuffer();
		}

		$this->dompdf_num_stack++;
		$this->dompdf_stack[$this->dompdf_num_stack] = array('c' => $curr_buffer, 'p' => $this->page, 'g' => $this->getGraphicVars());

		//Helpers::dompdf_debug("trace", "---------> " . $curr_buffer);

		if ($this->state == 2) {
			$this->setPageBuffer($this->page, '');
		}
		else {
			$this->buffer = '';
			$this->bufferlen = strlen($this->buffer);
		}
		$this->page = 1;	// some output is not done if page = 0 (e.g SetDrawColor())

		$this->dompdf_num_objects++;
		$this->dompdf_objects[$this->dompdf_num_objects] = array('c' => '', 'p' => 0, 'g' => null);

		return $this->dompdf_num_objects;
	}
function openObject ( ) { //Helpers::dompdf_debug("trace", "Enter My_TCPDF.openObject(state = $this->state)"); if ( $ this -> state == 2 ) { $ curr_buffer = $ this -> getPageBuffer ( $ this -> page ) ; } else { $ curr_buffer = $ this -> getBuffer ( ) ; } $ this -> dompdf_num_stack ++ ; $ this -> dompdf_stack [ $ this -> dompdf_num_stack ] = array ( 'c' => $ curr_buffer , 'p' => $ this -> page , 'g' => $ this -> getGraphicVars ( ) ) ; //Helpers::dompdf_debug("trace", "---------> " . $curr_buffer); if ( $ this -> state == 2 ) { $ this -> setPageBuffer ( $ this -> page , '' ) ; } else { $ this -> buffer = '' ; $ this -> bufferlen = strlen ( $ this -> buffer ) ; } $ this -> page = 1 ; // some output is not done if page = 0 (e.g SetDrawColor()) $ this -> dompdf_num_objects ++ ; $ this -> dompdf_objects [ $ this -> dompdf_num_objects ] = array ( 'c' => '' , 'p' => 0 , 'g' => null ) ; return $ this -> dompdf_num_objects ; }
save the TCPDF output buffer content in a stack and initialize it to an empty string
the function will return an object ID

NOTE: can this method be called again without first issuing a closeObject()?
save the TCPDF output buffer content in a stack and initialize it to an empty string the function will return an object ID