*
网上下载了html2pdf-4.5.1.zip,
要运行里面的实例,要先安装composer
运行html2pdf时,readme里面建议按照composer-setup.exe
安装过程中出现openssl的问题,在php.ini中开启相应extension即可,
路径写绝对路径,否则按默认路径找不到
在html2pdf的文件路径下,cmd运行composer install
安装dependencies
D:softwareWebServerapacheApache24htdocshtml2pdf>composer install Loading composer repositories with package information Updating dependencies (including require-dev) - Installing tecnickcom/tcpdf (6.2.12) Downloading: 100% Writing lock file Generating autoload files D:softwareWebServerapacheApache24htdocshtml2pdf>
*
下载的文件目录概览
*
运行时出现的问题
*
修改以上gd extension问题,修改php.ini
extension=D:softwarePhpWinphp56extphp_gd2.dll ;extension=php_gettext.dll ;extension=php_gmp.dll ;extension=php_intl.dll ;extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_ldap.dll ;extension=php_mbstring.dll ;extension=php_exif.dll ; Must be after mbstring as it depends on it ;extension=php_mysql.dll ;extension=php_mysqli.dll ;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client extension=D:softwarePhpWinphp56extphp_openssl.dll //这是安装composer时出现错误要改的
*
至此,运行成功
*