How to create PDF from HTML using CSS bootstrap classes

I have a table with bootstrap3 css classes and I want to generate PDF from this table ...

What is the best way to do this?

I need my css style 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 the help and pointers in advance.

+5
source share
2 answers

You are right, most tools, as mentioned on this site, do not support Bootstrap (fully). There are two APIs that are also in Bootstrap. They are built by the company I work for (disclaimer):

  • HTM2PDF - has an HTML API for PDF for all programming languages ​​and SDKs in PHP
  • PDFmyURL - there is a web page for the PDF API, an API for the complete website for PDF and libraries in PHP and .NET.
0
source

Source: https://habr.com/ru/post/1238632/


All Articles