phpword+tcpdf导出pdf功能的实现借鉴

2020-05-19  本文已影响0人  江江简书

生成字体

pdf生成字体:https://www.cnblogs.com/zhangyouwu/p/10381668.html

phpword简单的转pdf

phpword配置tcpdf:https://stackoverflow.com/questions/40071958/creating-pdf-from-docx-rendering-library-issue?r=SearchResults

总体的问题

https://www.mdaima.com/jingyan/67.html

常规的方法解释

https://www.cnblogs.com/relix/p/4982919.html

解决writehtml无法垂直居中的问题

$pdf->MultiCell(15, 10, '', 0, 'C', false, 0, '', '', true, 0, false, false, 60, 'M', true);
        $pdf->MultiCell(30, 10, '2.7行驶系统检查', 1, 'C', false, 0, '', '', true, 0, false, false, 60, 'M', true);  //设置一个大的复合单元格
$pdf->setXY(25, 23);  //再通过像素定位的原则解决

https://tcpdf.org/examples/example_057/ //官网地址

上一篇 下一篇

猜你喜欢

热点阅读