xhtml2pdf does not show image always -
i use xhmtl2pd tool convert html pdf. here piece of html
<tr> <td style="width:10px;vertical-align:top">• </td> <td style="padding:0 0 5px 0;width:200px;display:inline-block"> blah blah <br/> <img src="images/little-gray-arrow.png" height="10" width="11" alt="blah" /> </td> </tr>
the bizarre thing if remove br tag image of little-gray-arrow.png never shows up. put br tag back, image shows in "next" line. have tried options, padding, margin, , none works.
i try inline-displaying image between text, , image clock.png bottom half cut off, regardless tried.
<tr> <td style="width:10px;vertical-align:top">• </td> <td style="padding:0 0 5px 0;width:200px;"> wait <img src="images/clock.png" height="20" width="20" alt="20" /> minutes </td> </tr>
does know how solve problem , way xhmtl2pdf is. can xhtml2pdf display image inline?
thanks
if need render image format gif or png, should install pil library. python imaging library (pil) requred reportlab handling png/gif image.
refer: output image pdf xhtml2pdf
Comments
Post a Comment