Then you’re ready to email or print and mail the invoice. Simply download the file and fill out the customizable fields. Your notice the use of in the image command, this is the part that SHRINKS the overside image down to the correct width we need to see of 121. Make sure your invoices compensate you for all your hard work with this free, easy-to-use, invoice template. Free Invoice Template PDF This free invoice template PDF is a simple and easy way to send a professional-looking invoice to clients. The above says, page width - logo width = total space each side of the logo, then divide by 2 to work out how far in to push the logo then put it on the page (aka centered). Visit FreshBooks to access a range of free business invoice templates that have been expertly tailored to suit any industry, and you’ll never have to waste time on tedious invoicing again. Just add your company and client information to our free invoice generator, then download a clean, professionally designed invoice as a PDF that’s easy to send to clients. $this->page_largeur = holds the total page width Use this free lawn care invoice template to automatically create and download a custom invoice for any job. $pdf->Image($logo, ($this->page_largeur - $pdflogowidth) / 2, 10, $pdflogowidth, 0) Once you have that width, then you can start using the Image command in the PDF template, we used the below to get it centered. $pdflogowidth = the width in mm the logo will be on the page (as ours is 4.8inches, mm will be *25.4 (121.92mm) $pheight = height in pixels of the real logo (this is never used, but handy to have) Our invoice template library below features four leading invoice formats Microsoft Word, Excel, Google Docs, and PDF file formats. $pwidth = width in pixels of the real logo $logo = has the path to the image (as we stored it in the company logo section) List($pwidth, $pheight) = getimagesize($logo) You might wonder how we managed to get access to the image size in the PDF, as the PDF template does not store the image log width anywhere, so we used the below PHP = REAL INCHES (so need to * 25.4 to get mm (as 25.4mm to 1 inch). To get a 2016 pixel wide image to show up correctly need to use the below maths (remember the units are mm and not inches). We wanted our logo to be 4.8 inches wide in the center, so without this turning in to a rocket science equation, we needed to do this with calculations in the PDF template.įor 4.8inch wide logo the pixel width needs to be 336 pixels, this is WAY to small to look any good on paper, so we saved the logo as 2016 pixels wide (6 times better resolution (70DPI * 6 = 420DPI). The PDF system seems to be hard coded to 70DPI, however the measurements are in mm (just to complicate it abit). We worked this out, kinda complicated to explain…
0 Comments
Leave a Reply. |