Forum How do I...?

How to set the Left/Right Margin while Convert HTML to PDF

balas
How to set the Left/Right Margin while Converting HTML to PDF.
I am using the Prince PDF Helper.
Any one can give the idea to set the Left/Right side Margin while creating PDF file which has converted from HTML.


regards
bala.S
mikeday
You will need some CSS, either in a separate style sheet or in the HTML <style> element, like this:
@page {
    margin-left: 2cm;
    margin-right: 2cm;
}