TCPDF Multicell组合列

时间:2015-12-21 17:02:05

标签: javascript php pdf moodle tcpdf

我在print.php中使用TCPDFMulticell tables,其中显示了datecardriver每个$pdf->MultiCell(55, 40, ''.$dates, 0, 'J', 0, 0, '', '', true, 0, false, true, 0, true); $pdf->MultiCell(55, 40, ''.$cardriver, 0, 'J', 0, 0, '', '', true, 0, false, true, 0, true);

tables

现在next彼此显示$cardriver,但beneath中的文字开始一行+-----------------------------------+----------+--+ | Dates | Drivers | | +-----------------------------------+----------+--+ | 24. May 2016 08:30 - 17:00 | | | | 7. June 2016 08:30 - 17:00 | Driver 1 | | | 22. December 2021 09:00 - 10:00 | Driver 2 | | | This row is testing html entities | Driver 3 | | +-----------------------------------+----------+--+

one

有什么问题吗?

或者是否可以使用tablevariables这样的数据alligned +---------------------------------+---+ | Dates | | +---------------------------------+---+ | 24. May 2016 08:30 - 17:00 | | | Driver 1 | | | 7. June 2016 08:30 - 17:00 | | | Driver 2 | | | 22. December 2021 09:00 - 10:00 | | | Driver 2 | | +---------------------------------+---+

data

我将PDF放入以下javascript的另一个文件中的var dates = $("div.carhireinfo_dates span.carhireinfodata").text(); var drivers = $("div.carhireinfo_drivers span.carhireinfodata").text();

{{1}}

感谢您的帮助。

S上。

0 个答案:

没有答案