san_merah Posted June 1, 2015 Share Posted June 1, 2015 I want to modify invoice template to suit an a4 label sheets I got available so I have to show delivery address and store address at the very top of the invoice. I simply moved the html from header.tpl to invoive-myinvoicetemplate.tpl so the header.tpl doesn't contain any code and I get everything done in my new template file. The problem is that in generated .pdf I'm getting empty space where the header should be and I need content right to the top. Thanks for any pointers. Link to comment Share on other sites More sharing options...
tuk66 Posted June 2, 2015 Share Posted June 2, 2015 It is because the header as well as the footer have defined margins $this->setMargins(10, 40, 10); in PDFGenerator.php 1 Link to comment Share on other sites More sharing options...
san_merah Posted June 5, 2015 Author Share Posted June 5, 2015 Thanks! That worked. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now