lib/ezpdf/classes/class.pdf.php
function restoreState( $pageEnd = 0 )
    {
        if ( !$pageEnd )
        {
            $n = $this->nStateStack;
            $this->currentColour = $this->stateStack[$n]['col'];
            $this->currentStrokeColour = $this->stateStack[$n]['str'];
            $this->objects[$this->currentContents]['c'] .= "\n".$this->stateStack[$n]['lin'];
            $this->currentLineStyle = $this->stateStack[$n]['lin'];
            unset( $this->stateStack[$n] );
            $this->nStateStack--;
        }
        $this->objects[$this->currentContents]['c'] .= "\nQ";
    }
function restoreState( $pageEnd = 0 )
    {
        if ( !$pageEnd )
        {
            $n = $this->nStateStack;
            $this->currentColour = $this->stateStack[$n]['col'];
            $this->currentStrokeColour = $this->stateStack[$n]['str'];
            $this->objects[$this->currentContents]['c'] .= "\n".$this->stateStack[$n]['lin'];
            $this->currentLineStyle = $this->stateStack[$n]['lin'];
            unset( $this->stateStack[$n] );
            $this->nStateStack--;
        }
        $this->objects[$this->currentContents]['c'] .= "\nQ";
    }
function restoreState ( $ pageEnd = 0 ) { if ( ! $ pageEnd ) { $ n = $ this -> nStateStack ; $ this -> currentColour = $ this -> stateStack [ $ n ] [ 'col' ] ; $ this -> currentStrokeColour = $ this -> stateStack [ $ n ] [ 'str' ] ; $ this -> objects [ $ this -> currentContents ] [ 'c' ] .= "\n" . $ this -> stateStack [ $ n ] [ 'lin' ] ; $ this -> currentLineStyle = $ this -> stateStack [ $ n ] [ 'lin' ] ; unset ( $ this -> stateStack [ $ n ] ) ; $ this -> nStateStack -- ; } $ this -> objects [ $ this -> currentContents ] [ 'c' ] .= "\nQ" ; }
restore a previously saved state
restore a previously saved state