且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在WAMP Server上安装pdflib

更新时间:2023-02-21 23:12:18

您必须将libpdf_php.dll复制到php安装的扩展目录中(在phpinfo()输出中检查extension_dir).

You must copy the libpdf_php.dll to the extension directory of your php installation (check for extension_dir in your phpinfo() output).

还请注意使用与您的php版本和编译器匹配的PDFlib版本(您提到的下载中包含多个版本).

Also take care to use the version of PDFlib that matches your php version and compiler (multiple versions are included in the download you mentioned).

然后将extension=libpdf_php.dll添加到php.ini(您也可以在phpinfo()输出中找到它的位置,只需查找php.ini).

Then add extension=libpdf_php.dll to the php.ini (you can also find it's location listed in the phpinfo() output, just look for php.ini).

重新启动您的Web服务器,并检查您的phpinfo()中是否有"PDF"条目,如果是,那么恭喜您!

Restart your webserver and check if you have a "PDF" entry in your phpinfo() and if so, congratulations!

如果您想了解有关PDFlib及其在php中使用的更多详细信息,请务必查看

If you want more detailed information about PDFlib and it's use in php , be sure to check out the online php howto(a pdf link, of course) and also consult the documentation included in your download package.