【问题标题】:html to pdf using itextsharp how to set <div> element borderhtml到pdf使用itextsharp如何设置<div>元素边框
【发布时间】:2011-12-25 01:40:06
【问题描述】:

我正在传递一些 html 以使用 itextsharp 将其转换为 pdf。 我正在使用一些 div 标签并希望在 pdf 中围绕此标签添加边框。我使用了样式属性,但没有工作.. 我该怎么做。。

【问题讨论】:

标签: html pdf-generation itextsharp


【解决方案1】:

你有没有尝试过……

StyleSheet css = new StyleSheet();
css.LoadTagStyle(HtmlTags.DIV, HtmlTags.BORDER, "1");

【讨论】:

    猜你喜欢
    • 2013-06-15
    • 1970-01-01
    • 2014-04-18
    • 1970-01-01
    • 1970-01-01
    • 2012-03-22
    • 2016-10-10
    • 2011-01-02
    • 2012-02-26
    相关资源
    最近更新 更多