IBrowserHostPrintToPdf Method |
Version 101.0.180
Asynchronously prints the current browser contents to the Pdf file specified.
The caller is responsible for deleting the file when done.
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 101.0.180.0 (101.0.180.0)
Syntax void PrintToPdf(
string path,
PdfPrintSettings settings,
IPrintToPdfCallback callback
)
void PrintToPdf(
String^ path,
PdfPrintSettings^ settings,
IPrintToPdfCallback^ callback
)
Parameters
- path
- Type: SystemString
Output file location. - settings
- Type: CefSharpPdfPrintSettings
Print Settings, can be null - callback
- Type: CefSharpIPrintToPdfCallback
Callback executed when printing complete
See Also