set up print margins html2pdf

0

I'm using html2pdf, but I'm not able to increase the print margin. In my html I put <table align="center" cellspacing=0 cellpadding=0 border=0 so that everything is centralized. The maximum size I can put for the table is 670 and it looks like this:

<table align="center" cellspacing=0 cellpadding=0 border=0> 
<tr>
  <td  width=335></td>
  <td  width=335></td>
</tr> 
</tr> 

When I put values greater than 670 it gets decentralized. Would there be any configuration in htm2PDF that could be modified to improve this? In the examples I've tried html2pdf it says to modify the $html2pdf = new HTML2PDF('P','A4','pt', array(0, 0, 0, 0)); I made changes, but they did not work.

    
asked by anonymous 16.05.2018 / 16:28

1 answer

0

Resolved, to configure html2pdf to generate html pdf, we use tags:

<page backtop="10mm" backbottom="2mm" backleft="1mm" backright="1mm">
</page>

Configuration can be done at

  

back back="10mm" backbottom="2mm" backleft="1mm" backright="1mm"

This way you can set the document's print margin

    
16.05.2018 / 21:59