How to use DOMPDF in Laravel 4 in conjunction with a view in BLADE?

2

I need to generate PDF report in Laravel 4. I found several alternatives and I'm in doubt about which option is best:

  • DOMPDF ( alternative link )
    It seems very easy to use, since it is our good old HTML plus CSS, however I did not understand how I will do the header / footer and the page break.

  • FPDF
    I've known for some time, but you have to write a lot to get the PDF to work.

  • TCPDF
    I do not know anything about this version.

Question: How to use DOMPDF / Laravel to render a view through BLADE? Or would it be simpler to use one of the other two libraries listed above?

    
asked by anonymous 23.12.2013 / 19:10

1 answer

1

Helderam, the FPDF Package is actually the Facade that makes FPDF available within the Laravel 4 application.

Headers and footers can be configured using the same FPDF methods alone.

I recommend you play around with the documentation of each Library (not the package documentation) and see which one you are most comfortable with

    
23.12.2013 / 20:32