【问题标题】:Html to pdf conversion free open source component in .net.net 中的 Html 到 pdf 转换免费开源组件
【发布时间】:2010-09-02 06:42:30
【问题描述】:

我需要一个 HTML to pdf 组件,它可以将所有样式和设计的 html 转换为 pdf...我使用过 itextsharp 但转换为 pdf 后无法生成样式...

我需要一些免费的开源组件来进行 pdf 转换,请帮助提出宝贵的建议...

【问题讨论】:

    标签: .net pdf


    【解决方案1】:

    为了完成这项任务,我使用了xhtmlrendererikvmc(编译为.NET 程序集)。我使用以下命令编译 JAR 文件:

    ikvmc -target:library itext.jar
    ikvmc -target:library -reference:itext.dll core-renderer.jar
    

    您还需要将生成的文件所依赖的所有 IKVM 程序集放入您的项目中。

    作为替代方案,您可以查看 Aspose.Pdf,这是一个很好的商业组件。

    【讨论】:

      【解决方案2】:

      试试:https://www.articlage.com/adrianillo/article/htmltopdf

      这是 MIT 许可证。

      转换基本的html和css,但是html5和css3还有待完成。

      可以添加完成库的代码,代码为:https://github.com/adrianillo/HtmlToPdf

      【讨论】:

        猜你喜欢
        • 2012-06-14
        • 1970-01-01
        • 2011-08-01
        • 1970-01-01
        • 1970-01-01
        • 2010-11-15
        • 2010-09-25
        • 2011-07-10
        • 1970-01-01
        相关资源
        最近更新 更多