【发布时间】:2017-04-13 12:11:36
【问题描述】:
Websupergoo abcpdf 在从 HTML 或 URL 生成大的 pdf 时非常慢
Doc theDoc = new Doc();
theDoc.Page = theDoc.AddPage();
int theID;
theDoc.HtmlOptions.UseScript = false;
theDoc.HtmlOptions.DoMarkup = false;
theID = theDoc.AddImageHtml(html);
while (true)
{
theDoc.FrameRect(); // add a black border
if (!theDoc.Chainable(theID))
break;
theDoc.Page = theDoc.AddPage();
theID = theDoc.AddImageToChain(theID);
}
AddImageHtml 很慢,pdf 是 16 页。
知道如何提高性能吗?
顺便说一句,我尝试使用“AddImageUrl”,但这也很慢。
注意:我使用的是 ABCpdf8。
更新:这里是html要转换为pdf的样本
提前致谢
【问题讨论】:
-
你好@Rana你能建议你是如何解决这个问题的吗?
-
升级到版本 10
-
@Rana,我正在调查 ABCpdf10 的类似问题。我每秒获得 2.7 页(1498 页需要 9 分钟)。你花了多长时间?
标签: c# pdf pdf-generation wkhtmltopdf abcpdf