src/MyPdf.php
public function doTransform($n = null)
    {
        // get the last Transformation Matrix
        $nb = count($this->_transf);
        if ($nb) {
            $m = $this->_transf[$nb-1];
        } else {
            $m = array(1,0,0,1,0,0);
        }

        // if no transform, get the Identity Matrix
        if (!$n) {
            $n = array(1,0,0,1,0,0);
        }

        // create the new Transformation Matrix
        $this->_transf[] = array(
            $m[0]*$n[0]+$m[2]*$n[1],
            $m[1]*$n[0]+$m[3]*$n[1],
            $m[0]*$n[2]+$m[2]*$n[3],
            $m[1]*$n[2]+$m[3]*$n[3],
            $m[0]*$n[4]+$m[2]*$n[5]+$m[4],
            $m[1]*$n[4]+$m[3]*$n[5]+$m[5]
        );
    }
public function doTransform($n = null)
    {
        // get the last Transformation Matrix
        $nb = count($this->_transf);
        if ($nb) {
            $m = $this->_transf[$nb-1];
        } else {
            $m = array(1,0,0,1,0,0);
        }

        // if no transform, get the Identity Matrix
        if (!$n) {
            $n = array(1,0,0,1,0,0);
        }

        // create the new Transformation Matrix
        $this->_transf[] = array(
            $m[0]*$n[0]+$m[2]*$n[1],
            $m[1]*$n[0]+$m[3]*$n[1],
            $m[0]*$n[2]+$m[2]*$n[3],
            $m[1]*$n[2]+$m[3]*$n[3],
            $m[0]*$n[4]+$m[2]*$n[5]+$m[4],
            $m[1]*$n[4]+$m[3]*$n[5]+$m[5]
        );
    }
public function doTransform ( $ n = null ) { // get the last Transformation Matrix $ nb = count ( $ this -> _transf ) ; if ( $ nb ) { $ m = $ this -> _transf [ $ nb - 1 ] ; } else { $ m = array ( 1 , 0 , 0 , 1 , 0 , 0 ) ; } // if no transform, get the Identity Matrix if ( ! $ n ) { $ n = array ( 1 , 0 , 0 , 1 , 0 , 0 ) ; } // create the new Transformation Matrix $ this -> _transf [ ] = array ( $ m [ 0 ] * $ n [ 0 ] + $ m [ 2 ] * $ n [ 1 ] , $ m [ 1 ] * $ n [ 0 ] + $ m [ 3 ] * $ n [ 1 ] , $ m [ 0 ] * $ n [ 2 ] + $ m [ 2 ] * $ n [ 3 ] , $ m [ 1 ] * $ n [ 2 ] + $ m [ 3 ] * $ n [ 3 ] , $ m [ 0 ] * $ n [ 4 ] + $ m [ 2 ] * $ n [ 5 ] + $ m [ 4 ] , $ m [ 1 ] * $ n [ 4 ] + $ m [ 3 ] * $ n [ 5 ] + $ m [ 5 ] ) ; }
SVG - add a transformation Matric

@param array $n matrix
@access public
SVG - add a transformation Matric