public function setMargins(array $setting): PdfInterface
    {
        $this->setProperty('marginTop', (int) $setting['marginTop']);
        $this->setProperty('marginRight', (int) $setting['marginRight']);
        $this->setProperty('marginBottom', (int) $setting['marginBottom']);
        $this->setProperty('marginLeft', (int) $setting['marginLeft']);
        $this->setProperty('marginHeader', (int) $setting['marginHeader']);
        $this->setProperty('marginFooter', (int) $setting['marginFooter']);

        return $this;
    }
public function setMargins(array $setting): PdfInterface
    {
        $this->setProperty('marginTop', (int) $setting['marginTop']);
        $this->setProperty('marginRight', (int) $setting['marginRight']);
        $this->setProperty('marginBottom', (int) $setting['marginBottom']);
        $this->setProperty('marginLeft', (int) $setting['marginLeft']);
        $this->setProperty('marginHeader', (int) $setting['marginHeader']);
        $this->setProperty('marginFooter', (int) $setting['marginFooter']);

        return $this;
    }
public function setMargins ( array $ setting ) : PdfInterface { $ this -> setProperty ( 'marginTop' , ( int ) $ setting [ 'marginTop' ] ) ; $ this -> setProperty ( 'marginRight' , ( int ) $ setting [ 'marginRight' ] ) ; $ this -> setProperty ( 'marginBottom' , ( int ) $ setting [ 'marginBottom' ] ) ; $ this -> setProperty ( 'marginLeft' , ( int ) $ setting [ 'marginLeft' ] ) ; $ this -> setProperty ( 'marginHeader' , ( int ) $ setting [ 'marginHeader' ] ) ; $ this -> setProperty ( 'marginFooter' , ( int ) $ setting [ 'marginFooter' ] ) ; return $ this ; }
Set the page margins.

@param array $setting The margin configiration setting

@return PdfInterface The current instance

@api
Set the page margins .