NuGet Gallery Feed for CPechkin本插件是在Pechkin的基础上,基于.NET2.0开发,剔除Common.Loging依赖,支持多个网页生成一个PDF功能。底层DLL是x86的,所以适用插件的项目必须是x86编译。否则会出现无法加载dll问题。
多网页生成PDF简单实例:
SynchronizedPechkin sc = new SynchronizedPechkin(new GlobalConfig().SetMargins(new Margins(100, 100, 100, 100)));
IList<Uri> uris = new List<Uri>
{
new Uri(@"http://www.baidu.com"),
new Uri(@"c://1.html")
};
byte[] buf = sc.Convert(uris);
string fn = Path.GetTempFileName() + ".pdf";
FileStream fs = new FileStream(fn, FileMode.Create);
fs.Write(buf, 0, buf.Length);
fs.Close();https://www.nuget.org/packages/CPechkin/2018-12-08T17:58:38Zhttps://www.nuget.org/packages/CPechkin/0.0.9.12CPechkin 0.0.09.122015-09-11T17:36:45Z2018-12-08T17:58:38Zchenpenghttps://www.nuget.org/profiles/chenpeng本插件是在Pechkin的基础上,基于.NET2.0开发,剔除Common.Loging依赖,支持多个网页生成一个PDF功能。底层DLL是x86的,所以适用插件的项目必须是x86编译。否则会出现无法加载dll问题。
多网页生成PDF简单实例:
SynchronizedPechkin sc = new SynchronizedPechkin(new GlobalConfig().SetMargins(new Margins(100, 100, 100, 100)));
IList<Uri> uris = new List<Uri>
{
new Uri(@"http://www.baidu.com"),
new Uri(@"c://1.html")
};
byte[] buf = sc.Convert(uris);
string fn = Path.GetTempFileName() + ".pdf";
FileStream fs = new FileStream(fn, FileMode.Create);
fs.Write(buf, 0, buf.Length);
fs.Close();