Hi guys, new to this msg board but maybe someone can help me with this small problem with File_PDF.
I have a little hello world demo, but it does not seem to work.
First I will post the code; then explain the error.
$p = &File_PDF::factory('P', 'mm', 'A4');
$p->setinfo('title', 'This is the title of the pdf');
$p->setinfo('subject', 'The Subject');
$p->setinfo('creator', 'Who made this?');
$p->open();
$p->addPage();
$p->setXY(50 , 15);
$p->setFont('arial', '' , 20);
$p->write(0 , 'this is a test, please work');
$p->output('mytest.pdf', false);
$p->close();
So, I goto the .php file that I've created and the save/open pdf file window pops up as expected. I click open to view the file -- however, when I open it under Linux all I get is the title.
when I go to view this file under windows; adobe gives me the error 'font has not been set'
I've then gone and done a tail error_log in my httpd logs and nothing appears to be wrong.
Any suggestions? Advice?
Thanks for any potential help.