请教各位高手$pdf = PDF_new();PDF_open_file($pdf, "PDFTest.pdf");PDF_begin_page($pdf, "595", "842");$arial = PDF_findfont($pdf, "Arial", "host", 1);PDF_setfont($pdf, $arial, 10);PDF_show_xy($pdf, "This is an exam of PDF Documents, It is a good Lib,",50, 750);PDF_show_xy($pdf, "If you like,please try yourself!", 50, 730);PDF_end_page($pdf);PDF_close($pdf);怎么会报错了??//===========================================
Fatal error: Uncaught exception 'PDFlibException' with message 'Function must not be called in 'object' scope' in D:\oa\pro\Apache\htdocs\tt.php:4 Stack trace: #0 D:\oa\pro\Apache\htdocs\tt.php(4): pdf_begin_page() #1 {main} thrown in D:\oa\pro\Apache\htdocs\tt.php on line 4
Fatal error: Uncaught exception 'PDFlibException' with message 'Function must not be called in 'object' scope' in D:\oa\pro\Apache\htdocs\tt.php:4 Stack trace: #0 D:\oa\pro\Apache\htdocs\tt.php(4): pdf_begin_page() #1 {main} thrown in D:\oa\pro\Apache\htdocs\tt.php on line 4