Info
Version: | 0.0.9.12 |
Author(s): | Chen Peng |
Last Update: | Friday, September 11, 2015 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/CPechkin |
Install
Install-Package CPechkin
dotnet add package CPechkin
paket add CPechkin
CPechkin Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
多网页生成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();.