src/MyPdf.php
public function setTranslate($xT, $yT)
    {
        // Matrix for Translate
        $tm[0]=1;
        $tm[1]=0;
        $tm[2]=0;
        $tm[3]=1;
        $tm[4]=$xT*$this->k;
        $tm[5]=-$yT*$this->k;

        // apply the Transform Matric
        $this->_out(sprintf('%.3F %.3F %.3F %.3F %.3F %.3F cm', $tm[0], $tm[1], $tm[2], $tm[3], $tm[4], $tm[5]));
    }
public function setTranslate($xT, $yT)
    {
        // Matrix for Translate
        $tm[0]=1;
        $tm[1]=0;
        $tm[2]=0;
        $tm[3]=1;
        $tm[4]=$xT*$this->k;
        $tm[5]=-$yT*$this->k;

        // apply the Transform Matric
        $this->_out(sprintf('%.3F %.3F %.3F %.3F %.3F %.3F cm', $tm[0], $tm[1], $tm[2], $tm[3], $tm[4], $tm[5]));
    }
public function setTranslate ( $ xT , $ yT ) { // Matrix for Translate $ tm [ 0 ] = 1 ; $ tm [ 1 ] = 0 ; $ tm [ 2 ] = 0 ; $ tm [ 3 ] = 1 ; $ tm [ 4 ] = $ xT * $ this -> k ; $ tm [ 5 ] = - $ yT * $ this -> k ; // apply the Transform Matric $ this -> _out ( sprintf ( '%.3F %.3F %.3F %.3F %.3F %.3F cm' , $ tm [ 0 ] , $ tm [ 1 ] , $ tm [ 2 ] , $ tm [ 3 ] , $ tm [ 4 ] , $ tm [ 5 ] ) ) ; }
add a Translate transformation

@param float $Tx
@param float $Ty
@access public
add a Translate transformation