PHP : Creating image from html table

前端 未结 4 1282
一向
一向 2020-12-18 17:48

Can I get some sample code in PHP for converting an html table to image form(.gif,.jpg or any format)? I am using XAMPP on Windows.
Yes, the table is coming from the da

4条回答
  •  别那么骄傲
    2020-12-18 18:26

    The best way is to convert first in a .ps, then jpg, pdf, or whatelse you need. I can suggest you 2 links: html2ps

    wkhtmltopdf

    Tested both, and both works perfectly... html2ps is little slow (~30 sec for a 3 pages pdf, dunno about jpg) but more customizable. Give them a look

提交回复
热议问题