cefsharp保存文件为pdf

var success = await browserViewModel.WebBrowser.PrintToPdfAsync(dialog.FileName, new PdfPrintSettings
{
	MarginType = CefPdfPrintMarginType.Custom,
	MarginBottom = 10,
	MarginTop = 0,
	MarginLeft = 20,
	MarginRight = 10,
	PageWidth = 210000,
	PageHeight = 297000
});
posted @ 2017-07-21 17:18  公众号python学习开发  阅读(1230)  评论(0编辑  收藏  举报