• Resolved nrozas

    (@nrozas)


    First of all, thank you very much for developing such a useful plugin with so many applications

    I am trying to use an image as background of a table that I created in html to put the information of the form in a pdf.

    I am doing it in the following way but I can not use the image as background.

    <table width="580" height="300" border="0" align="center" cellpadding="0" cellspacing="0" background="https://www.mi-server.com/static/background-image.jpg">
      <tbody>
        <tr>
          <td>[date]</td>
        </tr>
        <tr>
          <td>[your-name] [last-name]</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
      </tbody>
    </table>

    How would be the correct way to add that image as a background ??

    • This topic was modified 8 years ago by nrozas.
    • This topic was modified 8 years ago by nrozas.
    • This topic was modified 8 years ago by nrozas.
    • This topic was modified 8 years ago by nrozas.
    • This topic was modified 8 years ago by nrozas.
Viewing 1 replies (of 1 total)
  • Thread Starter nrozas

    (@nrozas)

    Hello everyone,

    At the end I found the best way to do it and is using directly css style in the following way

    <div style="background-image:url(https://www.mi.server.com/static/image-580X300.jpg); width: 580px; height: 300px;">
    </div>

    That creates a div in the pdf that will carry in the background the image you want.

    Thank you very much anyway

    • This reply was modified 8 years ago by nrozas.
Viewing 1 replies (of 1 total)

The topic ‘Image as background’ is closed to new replies.