如何使用CSS引导类从HTML生成PDF [英] How to generate PDF from HTML with CSS bootstrap classes
问题描述
我有一个带有类bootstrap3 css的表,我想从这个表中生成一个PDF ...
这样做的最好方法是什么? p>
我需要保留我的风格css
我的表:
< table id =tabelaVisitaSickbayclass =table table-striped table-hover table-bordered>
< tbody>
< tr>
< th colspan =2>访问SickBay< / th>
< / tr>
< tr>
< td>博塔福戈托儿所和托儿所< / td>
< td id =visitaBotaPrenurseryAndNurseryclass =atendimentoVisitSickBay>< / td>
< / tr>
< / tbody>
感谢您的帮助,提前指针。
你是正确的大多数工具,如本网站提到的不支持Bootstrap(完全)。有两个API,那些网站实际上也在Bootstrap中。它们由我工作的公司构建(免责声明): HTM2PDF - 在PHP中为所有编程语言和SDK提供HTML到PDF API
I have a table with classes bootstrap3 css and I want to generate a PDF from this table...
What is the best way to do this?
I need that keep my style css My table:
<table id="tabelaVisitaSickbay" class="table table-striped table-hover table-bordered">
<tbody>
<tr>
<th colspan="2">Visits to the SickBay</th>
</tr>
<tr>
<td>Botafogo Pre-Nursery and Nursery</td>
<td id="visitaBotaPrenurseryAndNursery" class="atendimentoVisitSickBay"></td>
</tr>
</tbody>
Thanks for help & pointers in advance.
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
这篇关于如何使用CSS引导类从HTML生成PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!