110,532
社区成员
发帖
与我相关
我的任务
分享
private void HtmlToPDF(string HtmlPath,string PdfPath)
{
Document document = new Document(PageSize.A4, 80, 50, 30, 65);
try
{
PdfWriter.GetInstance(document, new FileStream(PdfPath, FileMode.Create));
HtmlParser.Parse(document, HtmlPath);
document.Close();
}