这问题困扰我几天,终于解决!
感谢 https://blog.csdn.net/weixin_33738982/article/details/94521230
把 PDF_Chinese 类里面的AddGBFont方法改成我这样 就OK了
function AddGBFont($family='GB', $name='STSongStd-Light-Acro')
{
$GLOBALS['GB_widths'] = array(' '=>480,'!'=>480,'"'=>480,'#'=>480,'$'=>480,'%'=>480,'&'=>480,'\''=>480,
'('=>480,')'=>480,'*'=>480,'+'=>480,','=>480,'-'=>480,'.'=>480,'/'=>480,'0'=>480,'1'=>480,
'2'=>480,'3'=>480,'4'=>480,'5'=>480,'6'=>480,'7'=>480,'8'=>480,'9'=>480,':'=>480,';'=>480,
'<'=>480,'='=>480,'>'=>480,'?'=>480,'@'=>480,'A'=>480,'B'=>480,'C'=>480,'D'=>480,'E'=>480,
'F'=>480,'G'=>480,'H'=>480,'I'=>480,'J'=>480,'K'=>480,'L'=>480,'M'=>480,'N'=>480,'O'=>480,
'P'=>480,'Q'=>480,'R'=>480,'S'=>480,'T'=>480,'U'=>480,'V'=>480,'W'=>480,'X'=>480,'Y'=>480,
'Z'=>480,'['=>480,'\\'=>480,']'=>480,'^'=>480,'_'=>480,'`'=>480,'a'=>480,'b'=>480,'c'=>480,
'd'=>480,'e'=>480,'f'=>480,'g'=>480,'h'=>480,'i'=>480,'j'=>480,'k'=>480,'l'=>480,'m'=>480,
'n'=>480,'o'=>480,'p'=>480,'q'=>480,'r'=>480,'s'=>480,'t'=>480,'u'=>480,'v'=>480,'w'=>480,
'x'=>480,'y'=>480,'z'=>480,'{'=>480,'|'=>480,'}'=>480,'~'=>480);
// Add GB font with proportional Latin
$cw = $GLOBALS['GB_widths'];
$CMap = 'GBKp-EUC-H';
$registry = array('ordering'=>'GB1', 'supplement'=>2);
$this->AddCIDFonts($family,$name,$cw,$CMap,$registry);
}
上成果图