对.Net Web应用程序使用EvoPDF可在本地工作,但是一旦部署到Microsoft Azure网站,它将引发一般性异常:“无法呈现html” 。 堆栈跟踪: [Exception: Could not render the HTML string.]
EvoPdf.HtmlToImageConverter.ᜀ(String A_0, String A_1, String A_2,
我试图用evopdf将html转换为pdf,并在我的html中有一个图像的绝对路径,但图像无法加载到pdf.here“sb”是字符串生成器,我在其中追加html字符串。 PdfConverter pdf = new PdfConverter();
byte[] outPdfBuffer = pdf.GetPdfBytesFromHtmlString(sb.ToString());