-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
I am using PHPWord (v0.12.0) to parse Word documents.
I don't know if it is on purpose, but PHPWord does not read nested tables.
I just wrote a hack in the PhpWord\Reader\Word2007\AbstractPart.php on line 300
foreach ($cellNodes as $cellNode) {
if ($cellNode->nodeName == 'w:p') { // Paragraph
$this->readParagraph($xmlReader, $cellNode, $cell, $docPart);
}
//@hack MW
if ($cellNode->nodeName == 'w:tbl') { // Table
$this->readTable($xmlReader, $cellNode, $cell, $docPart);
}
}
It seems to work just fine.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.