MonkeyMagic Posted August 31, 2009 Share Posted August 31, 2009 Hi everyone, I want to add an image to the PDF Invoice that is anchored in the bottom left corner of the page. The key here, is that I want it anchored - ie. it's stuck there and doesn't move regardless of the amount of text of information above it. I can insert an image, that's easy, but it moves up and down according to the amount of text/info on the page. I want the image stuck there, with glue, with alrodite, with cement ..... you get the idea Any idea how to do this? 0 Quote Link to comment Share on other sites More sharing options...
MonkeyMagic Posted September 3, 2009 Author Share Posted September 3, 2009 Anyone - any ideas ??? 0 Quote Link to comment Share on other sites More sharing options...
MonkeyMagic Posted September 12, 2009 Author Share Posted September 12, 2009 bumpity bump bump bump 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted September 12, 2009 Share Posted September 12, 2009 Whats the dimentions of the image? Are you using the default pdf template? 0 Quote Link to comment Share on other sites More sharing options...
MonkeyMagic Posted September 12, 2009 Author Share Posted September 12, 2009 Hi Sparky, The image is 300px wide by 50px high. yes, using default pdf template. I have modified it slightly but just to add our contact details. Any ideas? Thanks 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted September 12, 2009 Share Posted September 12, 2009 (edited) By default the auto page break is set at 25mm by memory so I have added a command to change it for you (add it to the top of the file) the image should auto resize to its normal size (50px = 17.64mm). Try this it should do the trick and let us know how you went. $pdf->SetAutoPageBreak(TRUE, 5); $pdf->Image(ROOTDIR.'/images/logo.jpg',5,274,0,17.64,'',$CONFIG['Domain'],'',true,150,'L'); PS. It also adds a hyperlink back to your site. For full details see http://www.tecnick.com/pagefiles/tcpdf/doc/com-tecnick-tcpdf/TCPDF.html#methodImage Edited September 12, 2009 by sparky 0 Quote Link to comment Share on other sites More sharing options...
fgimage Posted June 20, 2013 Share Posted June 20, 2013 i have the problem when i am inserting the image, it just move with the text when i c# add images to the pdf. so that's a good thought ,thx a lot. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.