phpSpreadsheet到mPDF文本旋转

问题描述 投票:0回答:1

我正在尝试将电子表格解析为PDF后实现文本旋转。目前,我正在设置文本旋转,例如$this->getAlignment($address)->setTextRotation(90);,在excel中效果很好(下图):

enter image description here

但是,在生成的PDF中,文本旋转不起作用:

enter image description here

[我发现mPDF支持将文本旋转设置为style="text-rotate: 45"或自定义html属性text-rotate="45",但我看不到任何手动设置CSS属性的选项。

php mpdf phpspreadsheet
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.