6.0.0-git
2018-12-10
Last Modified 2007-02-07 by Guest

File_PDF


require_once 'File/PDF.php';

$p = &File_PDF::factory('P', 'mm', 'A4');

$p->setinfo('title', 'FOOOODOOOO');
$p->setinfo('subject', 'The Subject field :-)');
$p->setinfo('creator', 'Not mine');

$p->open();
$p->setMargins(50, 50);
$p->addPage('P');
$p->setFont('arial', '', 15);
$p->write(10, 'This is some text\n');
$p->write(10, 'And this is some more text\n***\n');

$p->text(10, 20, 'Hello');
$p->close();
// $p->save('foo.pdf');
$p->output('foo.pdf', 'true');