从版本5.9开始,我还没有找到控制TCPDF的MultiCell中的行间距的方法.我也没有找到任何有助于通过使用Cell模仿相同行为的方法,例如某些方法返回不适合Cell宽度的文本部分.
有任何想法吗?
我希望我可以切换到FPDF(我更喜欢),但我不能.
小智 44
$pdf->setCellHeightRatio(0.8);
Run Code Online (Sandbox Code Playgroud)
在TCPDF源代码文档中:
* Set the height of the cell (line height) respect the font height.
* @param $h (int) cell proportion respect font height (typical value = 1.25).
* @public
* @since 3.0.014 (2008-06-04)
Run Code Online (Sandbox Code Playgroud)