Hi, How can I rotate the text 90 degrees in HTML so that TCPDF will do it correctly? Using styles: transform: rotate(-90.0deg); unfortunately it doesn't work, a
'<tcpdf method="StartTransform"/><tcpdf method="Rotate" params="'.$pdf->serializeTCPDFtagParameters(array(90)).'"/>Text To Rotate<tcpdf method="StopTransform"/>'
sets the text outside the table cell.
My HTML code:
<table style="text-align:left; border-width:0.4px;" cellspacing="0" cellpadding="1"><tr><td valign="center" style="width: 5%"><tcpdf method="StartTransform"/><tcpdf method="Rotate" params="'.$pdf->serializeTCPDFtagParameters(array(90)).'"/>Text To Rotate<tcpdf method="StopTransform"/></td><td valign="top" style="width: 90%">MyContent</td><td valign="center" style="width: 5%"></td></tr></table>
Hi, How can I rotate the text 90 degrees in HTML so that TCPDF will do it correctly? Using styles:
transform: rotate(-90.0deg);
unfortunately it doesn't work, a'<tcpdf method="StartTransform"/><tcpdf method="Rotate" params="'.$pdf->serializeTCPDFtagParameters(array(90)).'"/>Text To Rotate<tcpdf method="StopTransform"/>'
sets the text outside the table cell.
My HTML code:
<table style="text-align:left; border-width:0.4px;" cellspacing="0" cellpadding="1">
<tr>
<td valign="center" style="width: 5%"><tcpdf method="StartTransform"/><tcpdf method="Rotate" params="'.$pdf->serializeTCPDFtagParameters(array(90)).'"/>Text To Rotate<tcpdf method="StopTransform"/></td>
<td valign="top" style="width: 90%">
MyContent
</td>
<td valign="center" style="width: 5%"></td>
</tr>
</table>