IBrowserHostPrintToPdfAsync Method |
Version 51.0.0
Asynchronously prints the current browser contents to the Pdf file specified.
The caller is responsible for deleting the file when done.
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 51.0.0.0 (51.0.0.0)
Syntax Task<bool> PrintToPdfAsync(
string path,
PdfPrintSettings settings = null
)
Task<bool>^ PrintToPdfAsync(
String^ path,
PdfPrintSettings^ settings = nullptr
)
Parameters
- path
- Type: SystemString
Output file location. - settings (Optional)
- Type: CefSharpPdfPrintSettings
Print Settings.
Return Value
Type:
TaskBooleanA task that represents the asynchronous print operation.
The result is true on success or false on failure to generate the Pdf.
See Also