找到一中文说明书,,还可以。。就是生成的PDF字体老是是乱码。。不知道是不是因为我的系统是繁体的。

解决方案 »

  1.   

    $arial=pdf_findfont($pdf,"Arial","host",1);Fatal error: PDFlib error: [2516] PDF_findfont: Metrics data for font 'Arial' not found in c:\program files\easyphp1-8\www\test\pdf_ceshi.php on line 5谁能告诉我这是什么错误啊?
      

  2.   

    arial不是默认字体,要先设置字路径然后才能加载。
      

  3.   

    $pdf=PDF_new();
    // 打开一个文件
    PDF_open_file($pdf,"PDFTest.pdf");
    // 开始一个新页面(A4)
    PDF_begin_page($pdf,595,842);
    // 得到并使用字体对象
    $font = PDF_load_font($pdf, "Helvetica-Bold", "winansi", "");
    PDF_setfont($pdf, $font, 24.0);
    // 输出文字
    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);什么都不显示.是怎么回事?
      

  4.   

    PDF_set_parameter($p, "SearchPath", "C:\\WINNT\\Fonts");
    你可以把你要使用的字体放在相应的目录下然后在处理