C# 生成pdf文件客户端下载
itextsharp.dll 下载: http://sourceforge.net/projects/itextsharp/ 程序需引用:itextsharp.dll,itextsharp.pdfa.dll,PresentationFramework.dll 本人使用的是一般处理程序来写的,废话不多说代码才是硬道理,使用插件定位图片,表格是使用html转的pdf 1 public void ProcessRequest(HttpContext context) 2 { 3 context.Response.Clear(); 4 context.Response.AddHeader("content-disposition", "attachment;filename=报价单.pdf"); 5 context.Response.ContentEncoding = System.Text.Encoding.GetEncoding("UTF-8"); 6 context.Response.ContentType = "application/pdf"; 7 //文件临时存储路径 8 string filePath = System.AppDomain.CurrentDomain.BaseDirectory + "/PDF/" + System.DateTime.Now.ToString(