Closed FabianKoestring closed 2 years ago
The only working way to do it .....
$writer = new Html($spreadsheet);
$html = $writer->generateHtmlAll();
$html = str_replace(
'<td class="column0 style4 s style1" rowspan="7">Text</td>',
'<td class="column0 style4 s style1" rowspan="7" text-rotate="90">Text</td>',
$html
);
$mpdf = new \Mpdf\Mpdf();
$mpdf->WriteHTML($html);
$mpdf->Output();
This is:
What is the expected behavior?
setTextRotation()
should change the text orientation on PDF-Writers.What is the current behavior?
If i use
setTextRotation(90)
, the text will be vertically on.xlsx
but when i use a PDF-Writer likeMPDF
orDompdf
the text will be horizontally.What are the steps to reproduce?
Which versions of PhpSpreadsheet and PHP are affected?