0
Dear support,
We found that the quotatopn pdf format is very wide layout at top/bottom margins.
How pdf format output to narrow top and bottom margins ? is need to change the css or change some backend coding??
Regards,
Gavin
We found that the quotatopn pdf format is very wide layout at top/bottom margins.
How pdf format output to narrow top and bottom margins ? is need to change the css or change some backend coding??
Regards,
Gavin
Responses (3)
-
Accepted Answer
0Hello Gavin,
You can modify your pdf template if you know some html and css.
This can be done in the backend > templates > edit using plain text. And edit the one in the tab PDF and email version.
What you are looking for is in the "Styles for PDF and email"
.table{width:100%;margin-bottom:20px;}.table th,.table td{padding:8px;line-height:20px;text-align:left;vertical-align:top;border-top:1px solid #dddddd;}
You can also add extra css to adapt your requirements.
Tell me if that helps,
Joan -
Accepted Answer
-
Accepted Answer
0Helo Gavin,
You're right. This solution is not enough because dompdf inserts some margins.
To tell dompdf which margins to set you can insert this css in the "Styles for PDF and email" field:
@page { margin: 0px; }
body { margin: 0px; }
Remember to change 0px for a bigger number. 0px means 0 margin. I think 10px sould look ok for you.
Regards,
Joan
Your Reply

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »