2013-05-08 55 views
1

我使用xhmtl2pd工具將html轉換爲pdf。這裏是我的一塊HTMLxhtml2pdf並不總是顯示圖像

<tr> 
    <td style="width:10px;vertical-align:top">&bull; </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> 

的奇怪的事情是,如果我刪除了BR標籤,然後小灰arrow.png的形象一直沒有出現。將br標籤放回,圖像顯示在「下一行」中。 我已經嘗試過所有選項,填充,邊距和沒有作品。

我也嘗試在文本之間內聯顯示圖像,而且無論我嘗試了什麼,圖像clock.png下半部總是被截斷。

<tr> 
    <td style="width:10px;vertical-align:top">&bull; </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> 

有誰知道如何解決這個問題,它只是xhmtl2pdf的方式。 xhtml2pdf可以內嵌顯示圖像嗎?

感謝

回答