composer 下载连接:setasign/fpdi - Packagist
支持中文的办法:首先下载PDF_Chinese.zip 压缩包
链接:https://pan.baidu.com/s/1c-5Wm4plABjc36uYkKQiQw? 提取码:xfqb
下载后,解压,然后把它放进去扩展目录中?\vendor\setasign
在fpdi 文件中引入对应?PDF_Chinese文件,打开?/jyshop/vendor/setasign/fpdi/src/FpdfTpl.php 更改代码如下:
<?php
/**
* This file is part of FPDI
*
* @package setasign\Fpdi
* @copyright Copyright (c) 2020 Setasign GmbH & Co. KG (https://www.setasign.com)
* @license http://opensource.org/licenses/mit-license The MIT License
*/
namespace setasign\Fpdi;
use think\facade\Env;
include_once Env::get('ROOT_PATH')."vendor/setasign/PDF_Chinese/chinese.php";
/**
* Class FpdfTpl
*
* This class adds a templating feature to FPDF.
*/
class FpdfTpl extends \PDF_Chinese
{
use FpdfTplTrait;
}
|