private function getRemainingColumnWidth(TcTable $table, $width) {
        if (!$this->maxWidth) {
            $margins = $table->getPdf()->getMargins();
            $content_width = $table->getPdf()->getPageWidth() - $margins['left'] - $margins['right'];
        } else {
            $content_width = $this->maxWidth;
        }
        $result = $content_width - (is_array($width) ? array_sum($width) : $width);
        return $result > 0 ? $result : 0;
    }
private function getRemainingColumnWidth(TcTable $table, $width) {
        if (!$this->maxWidth) {
            $margins = $table->getPdf()->getMargins();
            $content_width = $table->getPdf()->getPageWidth() - $margins['left'] - $margins['right'];
        } else {
            $content_width = $this->maxWidth;
        }
        $result = $content_width - (is_array($width) ? array_sum($width) : $width);
        return $result > 0 ? $result : 0;
    }
private function getRemainingColumnWidth ( TcTable $ table , $ width ) { if ( ! $ this -> maxWidth ) { $ margins = $ table -> getPdf ( ) -> getMargins ( ) ; $ content_width = $ table -> getPdf ( ) -> getPageWidth ( ) - $ margins [ 'left' ] - $ margins [ 'right' ] ; } else { $ content_width = $ this -> maxWidth ; } $ result = $ content_width - ( is_array ( $ width ) ? array_sum ( $ width ) : $ width ) ; return $ result > 0 ? $ result : 0 ; }
Get the remaining width available, taking into account margins and
other cells width or the specified maxwidth if any.

@param TcTable $table
@param array|float $width sum of all other cells width
@return float
Get the remaining width available taking into account margins and other cells width or the specified maxwidth if any .