Hi guys,
We're trying to build Word versions of existing HTML reports generated by our metrics system. PHPDocX is doing a good job of taking our basic table structures and data across to .docx files. Unfortunately, not a single line of CSS is being correctly processed.
Furthermore, the PHPDocX examples are having the same issue - when we run the EmbedHTMLinTable.php script our output (in the example_embedHTMLinTable.docx file) is substantially different to that found at http://www.2mdc.com/PHPDOCX/example.html - specifically, our .docx has black table borders. The !DOCTYPE declaration is also visible in the output.
I'm suspicious that there's a basic parsing issue here - and I was wondering if the cause might be that we've recently migrated to PHP 5.3.1 (in which I believe they've changed some fundamental things about regular expressions: http://au2.php.net/eregi )
If so, we probably won't be the only people with this problem. If not, I'm keen to get any insights (since I've been beating my head against this issue for too many hours already).
Thanks in advance,
...Damien