Forum


Replies: 2   Views: 4010
Insert mathml in table cell
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 Pedro Ferreira  · 23-05-2014 - 17:17

Hi,



I'm having problems inserting mathml in a table cell. the generated docx is always corrupted (line 4, collumn 0).



Is it possible through phpdocx ? 



 



I'm trying the following



$mathData = $docx->addMathMML($mathml, true);

$math = $docx->createWordMLFragment(array($mathData));

                        $col_0 = array(

                            'width' => 10000,

                            'value' => $math,

                            'border' => 'none',

                            'cellMargin' => 1,

                            'vAlign' => 'bottom');



                        $options = array('size_col' => 1000,

                                               'border' => 'none',

                                               'float' => array('align' => 'center')

                                               );

                        $table[] = $col_0;

                        $docx->addTable($table, $options);



Does anyone can help me ?



 



Best Regards 


Posted by jorgelj  · 23-05-2014 - 20:09

Hello,



The current version doesn't allow to add a MathML as a WorldMLFragment.



Regards.