Converting HTML with Mathematical Symbols to PDF with Javascript support PHP -


i have web page has mathematical symbols in rendered using javascript. have used ascii math plugin , asciisvg plugin create , display mathematical expressions in web page. have requirement convert web page pdf. have tried dompdf , fpdf, both failed since these convertors not support javascript.

is there way achieve this?

if rely on javascript have 2 options:

  1. render on client , capture generated document content. can send content server rendering pdf. dompdf not support svg, method have use output format or library (i'm not sure ones support svg). main drawback require user interaction.
  2. use headless browser. these full browser engines compiled command line client. these support full web stack (html, css, javascript, svg). web content rendered in memory after can export pdf , image formats. best i've seen far phantomjs. drawback have able install binaries on system , execute them.

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -