luisramosb Posted August 25, 2010 Share Posted August 25, 2010 Hello,I would like to change the size of the PDF invoice file. I have taken a look to the classes/PDF.php file but I am not too familiar with PHP programming. I'd like to fit all the invoice text an logo in a A6 size (half the height of the original dimensions)Please any ideas are greatly appreciatedLuis Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 25, 2010 Share Posted August 25, 2010 Change this line in classes/PDF.php function invoice(): $pdf = new PDF('P', 'mm', 'A4'); Link to comment Share on other sites More sharing options...
luisramosb Posted August 25, 2010 Author Share Posted August 25, 2010 What would be the BIN format size (A?) for 210 mm x 148,5 mm?thanks Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 25, 2010 Share Posted August 25, 2010 I thought you said A6 in your first post. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 25, 2010 Share Posted August 25, 2010 Look here:http://en.wikipedia.org/wiki/Paper_size Link to comment Share on other sites More sharing options...
luisramosb Posted August 26, 2010 Author Share Posted August 26, 2010 Thanks!, that worked. I ended up using A5, but my problem now is that it prints the invoice in two sheets. How can I reduce spaces between lines or reduce font size or size of boxes so I can fit it in one single sheet. Link to comment Share on other sites More sharing options...
luisramosb Posted August 26, 2010 Author Share Posted August 26, 2010 Ok. I did already. Remove logo, cell phone number and moved the coordenates of the shipping and billing address. Link to comment Share on other sites More sharing options...
blueinferno2001 Posted May 22, 2013 Share Posted May 22, 2013 Hi, what if you want to print on a custom paper size? It's neither A4, A5, A6. Where do I define the sizes and how can I do that? Thank you 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