SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict AshleyH's Avatar
    Join Date
    Mar 2005
    Posts
    260
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    pdf output not taking images

    I have this code:

    Code:
    <cfdocument format="PDF"
    pagewidth = "5.8268" 
    pagetype = "custom"
    pageheight = "4.1338"
    marginbottom = "0"
    marginleft = "1"
    marginright = "0"
    margintop = "0" 
    backgroundvisible = "yes" 
    unit = "in"> 
    <cfoutput query="Recordset1"><table width="600" height="400"  border="0" cellpadding="5" cellspacing="0" background="front.jpg">
      <tr>
        <td><table  border="0" cellspacing="0" cellpadding="5">
          <tr>
            <td height="64"><span class="style1">#Recordset1.mail_postaltitle#<br>
                #Recordset1.mail_companyname#<br>
                #Recordset1.mail_tradadd1#<br>
                #Recordset1.mail_tradadd2#<br>
                #Recordset1.mail_tradadd3#<br>
                #Recordset1.mail_tradadd4#<br>
                #Recordset1.mail_tradeadd5#</span></td>
          </tr>
        </table>
          </td>
      </tr>
    </table>
      <p STYLE="page-break-before: always"></p></cfoutput>
      
    </cfdocument>
    It produces a pdf apart from that it does put the image (background="front.jpg">) onto everypage - only the first page in the pdf.

    Have I missed something in the code somewhere to tell it to put the image onto everypage??

    Thanks for your help!

    Regards
    Ashley

  2. #2
    SitePoint Member
    Join Date
    Jun 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am going to guess that you need to put the full web path to the image in there in order for the image to be pulled into the PDF. I think I had a similiar problem awhile ago and that is now I fixed my problem.

    -Randy

  3. #3
    SitePoint Addict AshleyH's Avatar
    Join Date
    Mar 2005
    Posts
    260
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks randy - I will give it a go.

    Ashley


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •