[dev] PDF-creation
Joaquim Homrighausen
joho at webbplatsen.se
Tue May 18 07:25:21 PDT 2004
The resulting file, foo.pdf, cannot be read by Acrobat 6.. it says "unknown
object". Furthermore, the $x->output does not cause MSIE/Firefox to invoke the
Acrobat Reader.
wpPDF is simply a class wpPDF extends File_PDF ..
(This is from framework-HEAD, today's..)
What am I doing wrong?
$x = &wpPDF :: factory ('P', 'mm', 'A4');
$x->setFont('arial', '', 15);
$x->setinfo ('title', 'FOOOODOOOO');
$x->setinfo ('subject', 'The Subject field :-)');
$x->setinfo ('creator', 'Not mine');
$x->open ();
$x->setMargins (150, 150);
$x->addPage ('P');
$x->write (10, 'This is some text\n');
$x->write (10, 'And this is some more text\n***\n');
$x->text (10,20,'Hello');
$x->close ();
$x->save ('foo.pdf');
$x->output ('xxx.pdf', 'true');
-Joaquim
More information about the dev
mailing list