Click or drag to resize
IBrowserHostPrintToPdfAsync Method
Version 55.0.0
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: 55.0.0.0 (55.0.0.0)
Syntax
Task<bool> PrintToPdfAsync(
	string path,
	PdfPrintSettings settings = null
)

Parameters

path
Type: SystemString
Output file location.
settings (Optional)
Type: CefSharpPdfPrintSettings
Print Settings.

Return Value

Type: TaskBoolean
A task that represents the asynchronous print operation. The result is true on success or false on failure to generate the Pdf.
See Also