8

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.

Vini.g.fer
  • 11,639
  • 16
  • 61
  • 90
felipe muner
  • 357
  • 2
  • 6
  • 13
  • 9
    I disagree that this is a duplicate question. With the success of bootstrap, it would be easier to make a specific PDF writer for bootstrap sites. That's why I ended up here. I have tried all the generalist converters: they all have issues. – Enigma Plus Feb 19 '17 at 15:16

2 Answers2

0

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
user1914292
  • 1,586
  • 13
  • 38