*
安装composer
运行html2pdf时,readme里面建议按照composer-setup.exe
安装过程中出现openssl的问题,在php.ini中开启相应extension即可,
路径写绝对路径,否则按默认路径找不到
在html2pdf的文件路径下,cmd运行composer install
安装dependencies
D:\software\WebServer\apache\Apache24\htdocs\html2pdf>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:\software\WebServer\apache\Apache24\htdocs\html2pdf>
*
运行时出现的问题
*
修改php.ini
extension=D:\software\PhpWin\php56\ext\php_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:\software\PhpWin\php56\ext\php_openssl.dll //这是安装composer时出现错误要改的
*
原文:http://www.cnblogs.com/qingmaple/p/6069004.html