Menu

image problems

Help
fmr
2010-11-15
2015-01-07
  • fmr

    fmr - 2010-11-15

    Hi,

    I have many problems in my pdf with images, in the image below you can see an
    example.

    It seems image height is not correctly.

     
  • fmr

    fmr - 2010-11-16

    Hi,

    Sorry, because the image above is too big and I couldn't change it.

    I've a problem in the corners of the table where I put some images rounding
    it.

    Here is the code

    <table align="center" width="724" bgcolor="#FFC800" cellspacing="0" cellpadding="0" border="0" style="width: 724px;">
    <tr>
        <td align="left"><img src="amarillo_left.gif" alt="img_left" /></td>
        <td></td>
        <td></td>
        <td align="right"><img src="amarillo_right.gif" alt="img_right" /></td>
    </tr>
    </table>
    
    <table align="center" border="0" style="font-size: 11px; font-family: Tahoma; width: 724px;" cellpadding="0" cellspacing="0">
    <tr>
        <td width="9" align="left"><img src="left_top.gif" border="0" alt="" /></td>
        <td width="706" colspan="5" class="borde_superior"></td>
        <td width="9" align="right"><img src="right_top.gif" border="0" alt="" /></td>
    </tr>
    ...
    <tr>
        <td valign="top" align="left" width="9"><img src="left_bottom.gif" border="0" alt="" /></td>
        <td colspan="5" class="borde_inferior"></td>
        <td valign="top" align="right" width="9"><img src="right_bottom.gif" border="0" alt="" /></td>
    </tr>
    </table>
    

    Anybody know what is the problem with these images?? I tried with differents
    values in the height propertie for the image, but I couldn't solve it.

    Thanks in advantage.

     
  • Nicola Asuni

    Nicola Asuni - 2010-11-16

    you are missing width and height attributes of the img tag.

     
  • fmr

    fmr - 2010-11-16

    Thanks for your help.

    In the code I put below there isn't attributes of the img tag, but I tested
    with these attributes and the result was the same.

     
  • Nicola Asuni

    Nicola Asuni - 2010-11-16

    Why don't you simply use a simple background and put the text above?
    Seems that you are trying to do a simple thing in the most complex way.

     
  • fmr

    fmr - 2010-11-16

    Sorry, but I don't understand you.

     
  • Nicola Asuni

    Nicola Asuni - 2010-11-16

    Probably the image you re using are encoded with different resolution and so
    are rendered in a different way.

     
  • swapnil.woxi

    swapnil.woxi - 2015-01-07

    I have problem for TCPDF. It showing images on my localhost but when I put that pdf functionality online it not showing error as well as not showing image on pdf

     

Log in to post a comment.