Gridlines fix for tcPDF renderer
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@91319 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
b9ca129e74
commit
2329e178aa
|
@ -229,7 +229,7 @@ class PHPExcel_Writer_HTML implements PHPExcel_Writer_IWriter {
|
|||
*/
|
||||
private function _mapBorderStyle($borderStyle) {
|
||||
switch ($borderStyle) {
|
||||
case PHPExcel_Style_Border::BORDER_NONE: return '0px';
|
||||
case PHPExcel_Style_Border::BORDER_NONE: return '1px hidden';
|
||||
case PHPExcel_Style_Border::BORDER_DASHDOT: return '1px dashed';
|
||||
case PHPExcel_Style_Border::BORDER_DASHDOTDOT: return '1px dotted';
|
||||
case PHPExcel_Style_Border::BORDER_DASHED: return '1px dashed';
|
||||
|
@ -905,8 +905,12 @@ class PHPExcel_Writer_HTML implements PHPExcel_Writer_IWriter {
|
|||
$style = isset($this->_cssStyles['table']) ?
|
||||
$this->_assembleCSS($this->_cssStyles['table']) : '';
|
||||
|
||||
if ($this->_isPdf && $pSheet->getShowGridLines()) {
|
||||
$html .= ' <table border="1" cellpadding="1" id="sheet' . $sheetIndex . '" cellspacing="4" style="' . $style . '">' . PHP_EOL;
|
||||
} else {
|
||||
$html .= ' <table border="0" cellpadding="1" id="sheet' . $sheetIndex . '" cellspacing="4" style="' . $style . '">' . PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
// Write <col> elements
|
||||
$highestColumnIndex = PHPExcel_Cell::columnIndexFromString($pSheet->getHighestColumn()) - 1;
|
||||
|
|
Loading…
Reference in New Issue