开发者社区 问答 正文

html转pdf 转换问题

我用ephtmltopdf.dll 这个文件去html转pdf,本地iis可以,,但是部署到测试环境就不行了 报错 pdfConverterExpertPdf.HtmlToPdf.HtmlConvertException: Could not render the HTML string. Could not initialize the html converter object.没有注册类 (异常来自 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG)) Set 'Full' trust level for ASP.NET application. Unblock the assembly using the 'Unblock' button from the file Properties tab if it was blocked by Windows OS or add the assembly to GAC.. 很困难

展开
收起
泡沫小迪 2020-05-29 16:15:25 1785 分享 版权
1 条回答
写回答
取消 提交回答
  • 可以试试Spire.Pdf.dll
    C# 如何将 HTML 转换为 PDF:https://www.e-iceblue.cn/spirepdf/convert-html-into-pdf.html
    
    
    2020-05-29 16:15:34
    赞同 展开评论