I am trying to make an online quiz application where the user will be presented with a quiz that contains text, images and math equations. I also want the user to be able to print that quiz. I am using MathJax to display the equations.
If the quiz contains just text and images but no math equations, I can use DomPdf to convert the quiz HTML to a PDF and have the user print it.
However, how can I go about creating a PDF that has both the content from the HTML tags in the quiz and the math equations from the quiz rendered by MathJax?