【发布时间】:2018-02-26 10:55:08
【问题描述】:
Drupal 7
我正在尝试通过 mpdf 生成 Pdf 那么如何执行此事件以及如何添加依赖项 ..
我正在使用的代码
require_once __DIR__ 。 '/vendor/autoload.php'; //应该添加什么
$html = '
<h1><a name="top"></a>mPDF</h1>
<h2>Basic HTML Example</h2>
This file demonstrates most of the HTML elements.
<h5>Heading 5</h5>
<h6>Heading 6</h6>
';
$mpdf=new Mpdf;
$mpdf->WriteHTML($html);
$mpdf->Output();
【问题讨论】: