cefsharp保存文件为pdf

mac2022-06-30  19

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 });

转载于:https://www.cnblogs.com/c-x-a/p/7218759.html

相关资源:C#开发的PDF文件浏览器
最新回复(0)