插件例子:https://tcpdf.org/examples/ 下载tcpdf插件: demo // Include the main TCPDF library (search for installation path). require_once(__DIR__.'/../vendor/tcpdf/tcpdf.php'); // create new PDF document $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAG…
将 html 转为 pdf :wkhtmltopdf wkhtmltopdf 是一个使用 webkit 网页渲染引擎开发的用来将 html 转成 pdf 的工具,可以跟多种脚本语言进行集成来转换文档. 官网:https://wkhtmltopdf.org/ github网址:https://github.com/wkhtmltopdf/wkhtmltopdf 参考:https://blog.csdn.net/x6582026/article/details/53835835 Linux命令行合并…
1.引用iTextSharp,用于拆分和合并pdf文件 using iTextSharp.text; using iTextSharp.text.pdf; 2.合并pdf //outMergeFile是pdf文件合并后的输出路径 //lstFile里存放要进行合并的pdf文件的路径 public static void mergePDFFiles(string outMergeFile, List<string> lstFile) { if (!Sql.IsEmptyString(outMer…