Laravel PDF Bootstrap

-1

I've been trying for a couple of days to generate a code html plus css helping me bootstrap to make a consolidated facutra that looks like a company but I'm not capable.

I found and found that with Barrydvh in Laravel it is incompatible that I installed snappy , but it does not matter if it looks like this:

Between that does not apply anything of css and leaves the frame of the folio the truth that is not on the right track.

I wanted to know if there is any way to apply bootstrap or it has to be all for css and html pure and hard.

    
asked by Alberto Cepero de Andrés 27.09.2017 в 10:16
source

2 answers

0

As far as I can see, for the problem that you have in specific, you can use this tool: link . There is a blade file that you can modify at will with Bootstrap and the variables that you want to generate with the client's data. The library will do all the work of converting HTML to PDF without problem.

The documentation is quite simple and intuitive: link

    
answered by 27.09.2017 в 12:17
0

Your problem comes from the PDF blade paths, which are not the same as the rest. Try to do

  <style>
        <?php include( public_path() . '/css/bootstrap.min.css' );?>
    </style>
    
answered by 27.09.2017 в 12:27