TNGUSER Posted August 4, 2008 Report Share Posted August 4, 2008 I'd like to insert a background image into all pages printed via the PDF print function. Can someone tell me the code to insert and where it needs to go?Thanks. Quote Link to comment Share on other sites More sharing options...
sinebeg Posted September 5, 2008 Report Share Posted September 5, 2008 I'd like to insert a background image into all pages printed via the PDF print function. Can someone tell me the code to insert and where it needs to go?Thanks.You did not get an answer but FYI and others:You cannot show a pdf directly in a web page either in the foreground or background (pdfs can only be viewed via a plugin)You will need to convert your pdf to an image: gif, jpg or png. Try opening the pdf in your image manipulation program: If it can read a pdf you can then save it as an image.s Quote Link to comment Share on other sites More sharing options...
TNGUSER Posted September 14, 2008 Author Report Share Posted September 14, 2008 You did not get an answer but FYI and others:You cannot show a pdf directly in a web page either in the foreground or background (pdfs can only be viewed via a plugin)You will need to convert your pdf to an image: gif, jpg or png. Try opening the pdf in your image manipulation program: If it can read a pdf you can then save it as an image.sLooking at http://www.fpdf.org/ a background image (watermark) can be inserted and although samples and the actual code is provided, I haven't been able to make it work inserting a jpg image in the pdfform.php file.On the fpdf main page under "manual" then "Image - output an image" is the code. Also under "tutorials" is Tutorial 2: Header, footer, page break and image. On the fpdf.org site, doing separate searches for "watermarks" and "background", there are numerous posts of users having success creating them. I've followed the directions as I understand them but the result is always the same.....a page that displays a variety of errors.I had hoped it was an easy thing to do and from the directions on the fpdf site it is. It's obviously my lack of knowledge in how and where to insert the code that's the problem! Thanks much for your reply.Carol 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.