lib/PHPPdf/Core/Node/Node.php
public function setMargin()
    {
        $margins = \func_get_args();

        if(count($margins) === 1 && is_string(current($margins)))
        {
            $margins = explode(' ', current($margins));
        }

        $marginLabels = array('margin-top', 'margin-right', 'margin-bottom', 'margin-left');
        $this->setComposeAttribute($marginLabels, $margins);

        return $this;
    }
public function setMargin()
    {
        $margins = \func_get_args();

        if(count($margins) === 1 && is_string(current($margins)))
        {
            $margins = explode(' ', current($margins));
        }

        $marginLabels = array('margin-top', 'margin-right', 'margin-bottom', 'margin-left');
        $this->setComposeAttribute($marginLabels, $margins);

        return $this;
    }
public function setMargin ( ) { $ margins = \ func_get_args ( ) ; if ( count ( $ margins ) === 1 && is_string ( current ( $ margins ) ) ) { $ margins = explode ( ' ' , current ( $ margins ) ) ; } $ marginLabels = array ( 'margin-top' , 'margin-right' , 'margin-bottom' , 'margin-left' ) ; $ this -> setComposeAttribute ( $ marginLabels , $ margins ) ; return $ this ; }
Setting "css style" margins
Setting css style margins