Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 640 Bytes

File metadata and controls

36 lines (26 loc) · 640 Bytes

EnseparHtml2pdfBundle

Html2pdf for Symfony 2 as a service.

How to install ?

Just add this to your composer.json file:

"require": {
  ...
  "ensepar/html2pdf-bundle" : "dev-master"
}

How to use ?

In your action:

$html2pdf = $this->get('html2pdf')->get();

How to configure?

Override these parameters in your configuration.

html2pdf.orientation  # The orientation of the document. P for portrait, L for landscape
html2pdf.format       # The format of the document. A4, A5 .... 
html2pdf.lang         # The language of the document