
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(); 这适用于第一页,但随后截断页面并且不会继续呈现剩余的页面.
有人知道为什么它会在页面后停止吗?
解决方法 “只绘制文档的第一页.可以使用AddImagetochain方法绘制后续页面.”从here起
可以在here找到如何使用AddImagetochain的示例
总结以上是内存溢出为你收集整理的c# – abcPDF 7将HTML转换为PDF但仅转换第一页全部内容,希望文章能够帮你解决c# – abcPDF 7将HTML转换为PDF但仅转换第一页所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)