PHPWord icon indicating copy to clipboard operation
PHPWord copied to clipboard

Uncaught Exception in XMLReader line 54

Open mira-thakkar opened this issue 9 years ago • 1 comments

PhpOffice\PhpWord\Settings::setPdfRendererPath(Ini::get('path/class').'/third-party/tcpdf'); 
PhpOffice\PhpWord\Settings::setPdfRendererName('TCPDF');
$word = PhpOffice\PhpWord\IOFactory::load('/root/test.docx');
$writer = PhpOffice\PhpWord\IOFactory::createWriter($word, 'PDF');
$writer->save('/root/output.pdf');

Uncaught Exception at XMLReader->getDomFromZip($doc_path, '_rels/.rels') in Word2007.php line 145 at Word2007->getRels($doc_path, '_rels/.rels') in Word2007.php line 110 at Word2007->readRelationships($doc_path) in Word2007.php line 42 at Word2007->load($doc_path) in IOFactory.php line 78 at IOFactory::load($doc_path) in routes.php line 18


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

mira-thakkar avatar Feb 15 '16 14:02 mira-thakkar