Click or drag to resize
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: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: (
Task<bool> PrintToPdfAsync(
	string path,
	PdfPrintSettings settings = null


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