$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');
$objWriter->setFont('arialunicid0-chinese-simplified');
自己从PHPExcel/Writer/PDF.php 里找到了,里面还有很多方法可以看着用
全网最新最细最实用WPS零基础入门到精通全套教程!带你真正掌握WPS办公! 内含Excel基础操作、函数设计、数据透视表等
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号