×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Background image in certificate

Background image in certificate 9 years 5 months ago #31235

  • Hans-Ola Johansson
  • Hans-Ola Johansson's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
We have tried to add our own backround image to the template for certificates, but it doesnt seem to work, any solution?

Background image in certificate 9 years 5 months ago #31263

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi Hans,

sorry for the late response - did you add with an absolute path? (e.g. xy.com/images/mybackground.jpg ) The certificate is normal html so there is no technical reason against an own background image.

Kind regards,

Yves

Background image in certificate 9 years 5 months ago #31308

  • Hans-Ola Johansson
  • Hans-Ola Johansson's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Hi!
I put the image as a background image in the certificate template before <tbody>
<table style="width: 600px; height: 900px; background-image: url('images/matukio/intyg_bg.png'); background-size: 100% auto; background-repeat: no-repeat;" border="0" align="center">
it seems to be alright, and shows upp in the template, but it doesnt show when printing the certificate directly to the printer or printing to pdf

Background image in certificate 9 years 5 months ago #31390

  • Hans-Ola Johansson
  • Hans-Ola Johansson's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Still no luck in getting the bg image to be printed... it is perfectly looking in the browser, but when printing or creating pdf the image does'nt appear.
When looking in the code:
<body onload=" parent.sbox-window.focus(); parent.sbox-window.print(); "><div class="compojoom-bootstrap"><p> </p>
<table style="width: 600px; height: 900px; background-image: url(' 195.22.87.61:8800/images/matukio/intyg_bg.png '); background-size: 100% auto; background-repeat: no-repeat;" border="0" align="center">
any idea?

Background image in certificate 9 years 2 months ago #32226

  • Hans-Ola Johansson
  • Hans-Ola Johansson's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
i tried to add a background image html code directly in mysql-matukio template certificate, i tried both in a table and directly as a background image
i get it "hardcoded" in the database, but not when checking the code in the admin för settings-template-certificate, it seems as it gets truncated or just skipped
in some occasions the image really is shown in the print preview, but it is not printed out in the pdf nore on the printer
it is like the code where the background isn't stable in some way.

any solutions or ideas?

Background image in certificate 9 years 2 months ago #32235

  • Hans-Ola Johansson
  • Hans-Ola Johansson's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
I found an error in regarding t3 and the sbox window print where the second body tag gets ignored (of course...), and therefore the background image gets ignored aswell
any tips?
<body>
<section id="t3-mainbody" class="container t3-mainbody">
<div class="row">
<div id="t3-content" class="t3-content span12">
<div id="system-message-container">
</div>
<body onload=" parent.sbox-window.focus(); parent.sbox-window.print(); ">
  • Page:
  • 1
Time to create page: 0.165 seconds