dongzou1964 2013-04-13 01:20
浏览 470

MathJax html渲染为pdf

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?

  • 写回答

1条回答 默认 最新

  • doufu6196 2013-04-13 02:27
    关注

    According to this post: http://sourceforge.net/projects/mathjax/forums/forum/948700/topic/3819537 wkhtmltopdf can convert the mathjax if you force a delay on the javascript rendering. I just got finished talking to a guy here: Printing the current page to pdf using wkhtmltopdf about how to get a page saved to pdf using wkhtmltopdf from php. If you put those two things together, I think you can get what you want.

    评论

报告相同问题?

悬赏问题

  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
  • ¥15 Macbookpro 连接热点正常上网,连接不了Wi-Fi。
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题