abcPDF 7 HTML转换为PDF格式,但只获得第一页转换 [英] abcPDF 7 converting HTML to PDF but only getting the first page converted
问题描述
我目前使用abcPDF 7 HTML转换为PDF。这是通过一个ASPX页面做了,我重写Render方法。
I'm currently using abcPDF 7 to convert HTML to PDF. This is done via an ASPX page where I override the Render method.
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();
这完全适用于第一页但随后会截断页面并没有继续呈现其余页。
This works perfectly for the first page but then truncates the page and does not continue rendering the remaining pages.
有谁知道为什么一个页面后停止?
Does anyone know why it stops after a page?
推荐答案
只有文档的第一页的绘制过程。随后的页面可以使用AddImageToChain方法绘制。
"Only the first page of the document is drawn. Subsequent pages can be drawn using the AddImageToChain method."
从<一个href=\"http://www.websupergoo.com/helppdf5net/source/5-abcpdf5/doc/1-methods/addimageurl.htm\">here
这是示例演示如何使用AddImageToChain可以发现<一个href=\"http://www.websupergoo.com/helppdf5net/source/5-abcpdf5/doc/1-methods/addimagetochain.htm\">here
An example how to use AddImageToChain can be found here
这篇关于abcPDF 7 HTML转换为PDF格式,但只获得第一页转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!