How to generate PDF from HTML with CSS bootstrap classes

This question already has an answer here:

  • Convert HTML + CSS to PDF with PHP? [closed] 30 answers

  • You can try something like this:

    http://codecanyon.net/item/awesome-conversion-script/6462891

    or

    http://www.sitepoint.com/convert-html-to-pdf-with-dompdf/


    You're right most tools as mentioned on this site do not support Bootstrap (fully). There are two APIs out there, who's sites are actually in Bootstrap as well. They're built by the company I work for (disclaimer):

  • HTM2PDF - has a HTML to PDF API for all programming languages and an SDK in PHP
  • PDFmyURL - has a webpage to PDF API, an API for complete websites to PDF and libraries in PHP and .NET
  • 链接地址: http://www.djcxy.com/p/15586.html

    上一篇: 将HTML表格导出为PDF

    下一篇: 如何使用CSS引导类从HTML生成PDF