View Single Post
Old 01-19-2013, 09:48 PM   PM User | #10
jimhill
Regular Coder

 
Join Date: Jul 2010
Posts: 271
Thanks: 3
Thanked 40 Times in 40 Posts
jimhill is an unknown quantity at this point
Actually I think I just found it. I have not tried this and just found it on the internet. On this site http://fpdf.org/ in the examples

PHP Code:
<?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($fieldsfalse); // second parameter: false if field values are in ISO-8859-1, true if UTF-8
$pdf->Merge();
$pdf->Output();
?>
__________________
If you can't stand behind your troops, feel free to stand in front of them
Semper Fidelis
jimhill is offline   Reply With Quote