6.0.0-git
2021-10-17

Diff for Doc/Dev/FilePDFPackage between 3 and 4

+ File_PDF



<code type="php">

<?php



require_once 'File/PDF.php';



$p$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');

</code>