使用pdflib生成pdf文件,代码如下,为什么没有生成预想中的PDFTest.pdf文件呢,请指教
<?php// 创建一个新的PDF文档句柄$pdf = PDF_new();
// 打开一个文件PDF_open_file($pdf, "PDFTest.pdf");
// 开始一个新页面(A4)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);?>