Pechkin 是GitHub上的一个开源项目,可方便将html转化成pdf文档,使用也很方便,下面是winform项目中的示例代码:
using System;
using System.Diagnostics ;
using System.Drawing.Printing;
using System.IO;
using System.Windows.Forms;
using Pechkin;
using Pechkin.Synchronized ashx来生成并输出pdf
using System;
using System.Drawing.Printing;
using System.IO;
using System.Web;
using Pechkin ;
using Pechkin.Synchronized;
namespace PdfWebTest
{
///
application/octet-stream"; Response.BinaryWrite(file); } } 在GitHub上发现2个相关的项目,其中Pechkin Allows you to utilize full power of the libra:https://github.com/gmanny/Pechkin