我通过PHPExcel库生成PDF文档,我设置了标题&页脚部分由下面的代码。但是当我打开pdf文档时,我看不到任何页眉或页脚。
$objPHPExcel->getActiveSheet()->getHeaderFooter()->setOddHeader('&C&HPlease treat this document as confidential!');
$objPHPExcel->getActiveSheet()->getHeaderFooter()->setOddFooter('&L&B' . $objPHPExcel->getProperties()->getTitle() . '&RPage &P of &N');