我用表单字段创建了一个PDF。现在我想用PHP填写PDF公式。我试过pdftk-php,但是当它返回PDF时它已经损坏了。 该怎么办?一些例子会很好:)
require('pdf/pdftk-class.php');
$pdfmaker = new pdftk_php;
$fields_hidden = array();
$fdf_data_strings= array("co_navn" => "test");
$fields_readonly = array();
$pdf_filename = "test.pdf";
$fdf_data_names = array();
$pdf_original = "Indberetningsskema.pdf";
$pdfmaker->make_pdf($fdf_data_strings, $fdf_data_names, $fields_hidden, $fields_readonly, $pdf_original, $pdf_filename);
// Thomas Bolander