Jump to content
TNG Community

PDF background image TNG Ver 7


TNGUSER

Recommended Posts

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.

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

  • 2 weeks later...

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

Looking 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! :roll:

Thanks much for your reply.

Carol

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...