我正在创建一个pdf,需要在页面中放置一条水平线.任何人都可以告诉你该怎么做?
我有一个xml文件,其中包含我的html标记(< table> ….< / table>).并且xml文件的全部内容被解析为用于创建pdf的字符串.现在不支持某些标签.其中之一是< hr>.那么我可以在xml文件中使用任何其他标记,以便这将绘制一个
使用xml数据创建pdf时的行.
下面是xml xontent的示例
<table> <tr> <td> <span> This is working properly. </span> </td> <tr> </table> <table> <tr> <td> <span> <hr> This is not working properly. </span> </td> <tr> </table>
如果需要更多信息,请告诉我.
提前致谢.
解决方法
下面创建了几个像素厚的全宽黑线,我正在使用HTMLWorker.Parse:
<table> <tr> <td> <span> This is working properly. </span> </td> <tr> </table> <table> <tr> <td> <span> <table border="1" cellpadding="0" cellspacing="0"><tr><td> </td></tr></table> This is working properly Now too! </span> </td> <tr> </table>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。