在没有asp.net工具的情况下从html制作pdf [英] make pdf from html without tool in asp.net
本文介绍了在没有asp.net工具的情况下从html制作pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HI
i希望将html代码转换为pdf原样。
for exp。一个用html制作的表格,当在浏览器中查看时,显示正确的表格。
当我使用itextpdf并转换它时,那就没有格式化
exp:
HI
i want to convert html code into pdf as it is.
for exp.. a table made in html , when viewed in browser , shows proper table..
and when i use itextpdf and convert it , then that is not formatted
exp:
<html><table><tr><td>ddddddddddd</td></tr><tr><td>agsbababasbasbasb</td></tr></table></html>
以上代码只是小测试代码..
i使用了表间距,填充
the above code is just small test code..
i have used table spacing , padding
推荐答案
请参阅以下链接。
1. 使用asp.net中的iTextSharp将HTML表的内容写入PDF文档 [ ^ ]
2. iTextSharp拯救:将HTML转换为PDF [ ^ ]
See the following links.
1. Writing content of HTML table into PDF doc using iTextSharp in asp.net[^]
2. iTextSharp to the rescue: converting HTML to PDF[^]
这篇关于在没有asp.net工具的情况下从html制作pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文