How to add image and text in header and footer of PDF with php excel and dompdf lib

Topics: Developer Forum
Jul 31, 2014 at 8:20 AM
Edited Jul 31, 2014 at 8:22 AM
Please explain me how I can add Images and text to header and footer with PHPexcel and dompdf lib. I am tring to get solution in google but nothing is working for me. please help so far I am doing in this way

$currentHeader = $objPHPExcel->getActiveSheet()->getHeaderFooter()->getOddHeader(); $objPHPExcel->getActiveSheet()->getHeaderFooter()->setOddHeader($currentHeader.'&C&G TITLE OF PDF');
$objPHPExcel->getActiveSheet()->getHeaderFooter()->addImage($objDrawing, PHPExcel_Worksheet_HeaderFooter::IMAGE_HEADER_LEFT);
Jul 31, 2014 at 8:30 AM
Header/Footer settings are only supported for the Excel2007 and Excel5 Writers
Jul 31, 2014 at 8:32 AM
Edited Jul 31, 2014 at 8:37 AM
Means I can add Header and footer for Excel sheet only and not for PDF?
Jul 31, 2014 at 9:05 AM
That's right
Jul 31, 2014 at 9:21 AM
thank you for making this clear.. :)