开发者社区> 问答> 正文

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 1703 0
1 条回答
写回答
取消 提交回答
  • 可以试试Spire.Pdf.dll
    C# 如何将 HTML 转换为 PDF:https://www.e-iceblue.cn/spirepdf/convert-html-into-pdf.html
    
    
    2020-05-29 16:15:34
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
企业数字化基石——阿里巴巴云计算基础设施实践-试读 立即下载
天猫 HTML5 互动技术实践 立即下载
天猫HTML5互动技术实践 立即下载