[ILUG] Watch for new files ?
John P. Looney
valen at tuatha.org
Thu Apr 8 14:06:54 IST 2004
On Thu, Apr 08, 2004 at 12:18:42PM +0100, Declan Grady mentioned:
> Also, I'm using a2ps to make ps and then pdfs form ascii files - Is there some
> way to add in a background image (company logo) to the pdf ?
I did an online invoice generator a while ago, using http://www.fpdf.org/
It's really easy...something like;
<?php
define('FPDF_FONTPATH','font/');
require('fpdf.php');
$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();
?>
Will make up a simple PDF file. Much better than relying on a2ps or the
like.
john
More information about the ILUG
mailing list