Problem with php excel generating pdf

Topics: Developer Forum, Project Management Forum, User Forum
Aug 17, 2011 at 10:43 AM

With phpExcel version 1.7.6 i try to generate a pdf.

the php code i write is:

    $objWriter = new PHPExcel_Writer_PDF($objPHPExcel);
    $objWriter->setPreCalculateFormulas(false);
    $objWriter->save(BaseDir."/arxiusgenerats/prova.pdf");

 

when i try to execute, it don't wirk and trow me the following error:

Error: 8

Undefined index: n (/webs/carsway2/classes/PHPExcel/Shared/PDF/tcpdf.php ->linia 9992)
#0 /webs/carsway2/classes/PHPExcel/Shared/PDF/tcpdf.php(9992): errorHandler(8, 'Undefined index...', '/webs/carsway2/...', 9992, Array)
#1 /webs/carsway2/classes/PHPExcel/Shared/PDF/tcpdf.php(9640): TCPDF->_puttruetypeunicode(Array)
#2 /webs/carsway2/classes/PHPExcel/Shared/PDF/tcpdf.php(10314): TCPDF->_putfonts()
#3 /webs/carsway2/classes/PHPExcel/Shared/PDF/tcpdf.php(10559): TCPDF->_putresources()
#4 /webs/carsway2/classes/PHPExcel/Shared/PDF/tcpdf.php(3618): TCPDF->_enddoc()
#5 /webs/carsway2/classes/PHPExcel/Shared/PDF/tcpdf.php(7830): TCPDF->Close()
#6 /webs/carsway2/classes/PHPExcel/Writer/PDF.php(296): TCPDF->Output('/webs/carsway2/...', 'S')
#7 /webs/carsway2/ventas/sqlact.php(201): PHPExcel_Writer_PDF->save('/webs/carsway2/...')
#8 {main}

 

Thanks for your help