[cvs] [Wiki] changed: FilePDF

Chuck Hagenbuch chuck at horde.org
Wed Jun 1 23:28:32 PDT 2005


chuck  Wed, 01 Jun 2005 23:28:32 -0700

Modified page: http://wiki.horde.org/FilePDF
New Revision:  1.1

@@ -1 +1,25 @@
++ File_PDF
 
+<code type="php">
+<?php
+
+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');
+</code>


More information about the cvs mailing list