Forum


Replies: 2   Views: 2616
Html2wordml column size: i've resolved the issuecase 'tr': //before closing a ro
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by matteo.moretti  · 05-06-2017 - 12:27

I've noticed that there is a little inaccurancy: I've changed a little piece of that code in

$restOfTableWidth = 0;

preg_match_all('/<w:tblW w:w="(\d+)"/', self::$WordML, $result);
if ($result) {
    $restOfTableWidth = end($result[1]);
}

Don't know what to do (and even if it's a concrete case) when no match at all from preg_match_all but I suppose that's not a possibile scenario as, AFAIK, it seems that at least a 0 is placed.

Best regards,

Samuele.