Closed Collie-IT closed 4 years ago
The dirty hotfix is to set a fall trough at getCSSBorderStyle($cssborder)
of
<path>/vendor/tecnickcom/tcpdf/tcpdf.php
switch (count($bprop)) {
case 4: //fall trough for "'!important'"
case 3: {
$width = $bprop[0];
$style = $bprop[1];
$color = $bprop[2];
break;
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue for you, please try to help by debugging it further and sharing your results. Thank you for your contributions.
Fixed in TCPDF#467
This is:
What is the expected behavior?
If I use a borderstyle like
\PhpOffice\PhpSpreadsheet\Style\Border::BORDER_HAIR
In the PDF the line should be the size of the borderstyle in case aboth small.What is the current behavior?
The lines get the same thickness because
in protected function getCSSBorderStyle($cssborder)
of<path>/vendor/tecnickcom/tcpdf/tcpdf.php
the Parameter count will be interpreted likePHP spreedsheet sends 4 parameters ("X X X !important") and all goes to the default: case.
What are the steps to reproduce?
Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:
Which versions of PhpSpreadsheet and PHP are affected?
Tested with 1.8.2, 19.0