phpexcel生成pdf如何用arialunicid0-chinese-simplified.php文件设置中文?

WBOY
Release: 2016-06-20 12:42:06
Original
1425 people have browsed it

$filename=strval(date("Y-m-d h_i_sa",time()));header('Content-Type: application/pdf');header('Content-Disposition: attachment;filename="'.$filename.'.pdf"');header('Cache-Control: max-age=0');$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'PDF');$objWriter->save('php://output');
Copy after login


如题...


回复讨论(解决方案)

$objWriter->setFont('arialunicid0-chinese-simplified');
自己从PHPExcel/Writer/PDF.php 里找到了,里面还有很多方法可以看着用

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!