我们使用 ABCPDF 将 HTMl 页面转换为 PDF。一切正常,除了使用 highcharts 生成的图表。usescript 标记设置为 true,但呈现字符的区域保持空白。在 IE9 中,图表被呈现。有人知道解决方案吗?
Doc theDoc = new Doc();
theDoc.HtmlOptions.UseScript = true;
theDoc.HtmlOptions.ImageQuality = 100;
theDoc.AddImageUrl("/factsheet.html", false, 984, true);
byte[] theData = theDoc.GetData();
Response.Clear();
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", "inline; filename=MyPDF.PDF");
Response.AddHeader("content-length", theData.Length.ToString());
Response.BinaryWrite(theData);
Response.End();