【发布时间】:2012-03-29 18:00:36
【问题描述】:
从 5.9 版开始,我还没有找到控制 TCPDF 的 MultiCell 中的行距的方法。我也没有找到任何有助于通过使用 Cell 来模拟相同行为的方法,例如返回不适合 Cell 宽度的文本部分的某些方法。
有什么想法吗?
我希望我可以切换到 FPDF(我更喜欢),但我不能。
【问题讨论】:
标签: tcpdf
从 5.9 版开始,我还没有找到控制 TCPDF 的 MultiCell 中的行距的方法。我也没有找到任何有助于通过使用 Cell 来模拟相同行为的方法,例如返回不适合 Cell 宽度的文本部分的某些方法。
有什么想法吗?
我希望我可以切换到 FPDF(我更喜欢),但我不能。
【问题讨论】:
标签: tcpdf
$pdf->setCellHeightRatio(0.8);
在 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)
【讨论】: