protected function _createTableHeader($header = [], $width = []) {
		if (empty($header) || empty($width)) {
			return;
		}

		$this->tcpdf->SetFillColor(255, 0, 0);
		$this->tcpdf->SetTextColor(255);
		$this->tcpdf->SetDrawColor(128, 0, 0);
		$this->tcpdf->SetLineWidth(0.3);
		$this->tcpdf->SetFont('', 'B', 10);
		$height = $this->_rowHeight['TableHeader'];
		$cells = [];

		$numHeaders = count($header);
		for ($i = 0; $i < $numHeaders; ++$i) {
			$widthColumn = (isset($width[$i]) ? $width[$i] : 0);
			$headerColumn = (isset($header[$i]) ? $header[$i] : '');
			$cells[] = [$widthColumn, $height, $headerColumn, 'LTRB', 'C', true, 0, '', '',
				true, 0, false, true, $height, 'M', true];
		}
		$this->_writeMulticells($cells);
	}
protected function _createTableHeader($header = [], $width = []) {
		if (empty($header) || empty($width)) {
			return;
		}

		$this->tcpdf->SetFillColor(255, 0, 0);
		$this->tcpdf->SetTextColor(255);
		$this->tcpdf->SetDrawColor(128, 0, 0);
		$this->tcpdf->SetLineWidth(0.3);
		$this->tcpdf->SetFont('', 'B', 10);
		$height = $this->_rowHeight['TableHeader'];
		$cells = [];

		$numHeaders = count($header);
		for ($i = 0; $i < $numHeaders; ++$i) {
			$widthColumn = (isset($width[$i]) ? $width[$i] : 0);
			$headerColumn = (isset($header[$i]) ? $header[$i] : '');
			$cells[] = [$widthColumn, $height, $headerColumn, 'LTRB', 'C', true, 0, '', '',
				true, 0, false, true, $height, 'M', true];
		}
		$this->_writeMulticells($cells);
	}
protected function _createTableHeader ( $ header = [ ] , $ width = [ ] ) { if ( empty ( $ header ) || empty ( $ width ) ) { return ; } $ this -> tcpdf -> SetFillColor ( 255 , 0 , 0 ) ; $ this -> tcpdf -> SetTextColor ( 255 ) ; $ this -> tcpdf -> SetDrawColor ( 128 , 0 , 0 ) ; $ this -> tcpdf -> SetLineWidth ( 0.3 ) ; $ this -> tcpdf -> SetFont ( '' , 'B' , 10 ) ; $ height = $ this -> _rowHeight [ 'TableHeader' ] ; $ cells = [ ] ; $ numHeaders = count ( $ header ) ; for ( $ i = 0 ; $ i < $ numHeaders ; ++ $ i ) { $ widthColumn = ( isset ( $ width [ $ i ] ) ? $ width [ $ i ] : 0 ) ; $ headerColumn = ( isset ( $ header [ $ i ] ) ? $ header [ $ i ] : '' ) ; $ cells [ ] = [ $ widthColumn , $ height , $ headerColumn , 'LTRB' , 'C' , true , 0 , '' , '' , true , 0 , false , true , $ height , 'M' , true ] ; } $ this -> _writeMulticells ( $ cells ) ; }
Write a header for table cells

@param array $header Array of header for table cells.
@param array $width Array of width for table cells.
@return void
Write a header for table cells