FrDeamon / EnseparHtml2pdfBundle

Html2pdf for Symfony 2 as a service.
MIT License
22 stars 22 forks source link

How can I modify the mL, mR, mT, mB marges who be specific in instance of HTML2PDF. #11

Closed ksom closed 11 years ago

ksom commented 11 years ago

Hi, Thanks for your job ! I've a question. What is the equivalent code by using your bundle ? See bellow. I want to modify mL mR mT mB marges. They're not the same of attribute "backtop" etc.. of page tag. $pdf = new HTML2PDF('P','A4','fr', array(mL, mR, mT, mB));

Thanks !

Good luck to continue that great job.

OwlyCode commented 11 years ago

Hi there ! Thank you for your nice coment !

You can do this with additional parameters in your configuration :

  html2pdf.unicode: true
  html2pdf.encoding: 'UTF-8'
  html2pdf.margin: [10,15,10,15]

This is possible since the pull request #4 but has yet to be documented.