我有一个简单的表格,我想使用 php 使它在 pdf 中可编辑。但是pdf正在创建表单但我无法编辑和提交它,任何原因或者我无法使用php编辑pdf?
我的代码是
<?php
define('_MPDF_PATH','/');
include("mpdf.php");
$html = '
<form action="test.php">
<input type="text" id="name" value="name" />
<input type="reset" name="reset" value="Reset" />
<input type="submit" name="submit" value="Submit" />
</form>';
$mpdf=new mPDF('c');
$mpdf->default_lineheight_correction = 1.2;
// LOAD a stylesheet
$stylesheet = file_get_contents('mpdfstyletables.css');
$mpdf->WriteHTML($stylesheet,1); // The parameter 1 tells that this is css/style only and no body/html/text
$mpdf->SetColumns(2,'J');
$mpdf->WriteHTML($html);
$mpdf->Output('test.pdf','D');//
exit;
?>
我正在使用mPDF Example Url和Form Example