lib/PHPPdf/Core/Node/Node.php
public function setWidth($width)
    {
        $width = $this->convertUnit($width);
        $this->setAttributeDirectly('width', $width);

        if(\strpos($width, '%') !== false)
        {
            $this->setRelativeWidth($width);
        }

        return $this;
    }
public function setWidth($width)
    {
        $width = $this->convertUnit($width);
        $this->setAttributeDirectly('width', $width);

        if(\strpos($width, '%') !== false)
        {
            $this->setRelativeWidth($width);
        }

        return $this;
    }
public function setWidth ( $ width ) { $ width = $ this -> convertUnit ( $ width ) ; $ this -> setAttributeDirectly ( 'width' , $ width ) ; if ( \ strpos ( $ width , '%' ) !== false ) { $ this -> setRelativeWidth ( $ width ) ; } return $ this ; }
Set target width

@param int|null $width
Set target width