Forum


Replies: 4   Views: 3818
Dynamically create template with html
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 fpa.777  · 19-08-2014 - 19:21

Hello, Let me explain the situation: I have a series of HTML pages, some of these containing equations written in MathML. The objective is to create DOCX and PDF files from these HTML pages and still preserve the equations. I believe there's no way to use HTML+MathML directly, so I had to think of a way to use the addMathEquation method. The idea was to dynamically create a template and embed the HTML, but replacing the MathML with template variables. Then, I'd just have to use the replaceVariableByWordFragment method to put the equations in the document again. So, my main question is... is this possible? If so, is the idea ok, or am I missing any important point? And finally, which package suits best for such purpose? Thank you.