私は現在、abcPDF7を使用してHTMLをPDFに変換しています。これは、RenderメソッドをオーバーライドするASPXページを介して行われます。
Doc theDoc = new Doc();
theDoc.SetInfo(0, "License", m_License );
theDoc.HtmlOptions.Paged = true;
theDoc.HtmlOptions.Timeout = 1000000;
string callUrl = "http:// my app page";
theDoc.AddImageUrl(callUrl);
Response.Clear();
Response.Cache.SetCacheability(HttpCacheability.Private);
Response.AddHeader("Content-Disposition", "attachment; filename=" + sFile + ".pdf");
Response.ContentType = "application/octet-stream";
theDoc.Save(Response.OutputStream);
Response.Flush();
これは最初のページでは完全に機能しますが、その後ページを切り捨て、残りのページのレンダリングを続行しません。
ページの後で停止する理由を誰かが知っていますか?