commitall
This commit is contained in:
20
account/application/third_party/pdf/fpdm/ex-array.php
vendored
Normal file
20
account/application/third_party/pdf/fpdm/ex-array.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/***************************
|
||||
Sample using a PHP array
|
||||
****************************/
|
||||
|
||||
require('fpdm.php');
|
||||
|
||||
$fields = array(
|
||||
'name' => 'My name',
|
||||
'address' => 'My address',
|
||||
'city' => 'My city',
|
||||
'phone' => 'My phone number'
|
||||
);
|
||||
|
||||
$pdf = new FPDM('template.pdf');
|
||||
$pdf->Load($fields, false); // second parameter: false if field values are in ISO-8859-1, true if UTF-8
|
||||
$pdf->Merge();
|
||||
$pdf->Output();
|
||||
?>
|
Reference in New Issue
Block a user