| WebBrowserExtensionsPrintToPdfAsync Method (IBrowser, String, PdfPrintSettings) | 
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
Syntaxpublic static Task<bool> PrintToPdfAsync(
	this IBrowser cefBrowser,
	string path,
	PdfPrintSettings settings = null
)
public:
[ExtensionAttribute]
static Task<bool>^ PrintToPdfAsync(
	IBrowser^ cefBrowser, 
	String^ path, 
	PdfPrintSettings^ settings = nullptr
)
Parameters
- cefBrowser
- Type: CefSharpIBrowser
 The IBrowser object this method extends.
- 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.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type 
IBrowser. When you use instance method syntax to call this method, omit the first parameter. For more information, see 
Extension Methods (Visual Basic) or 
Extension Methods (C# Programming Guide).
 See Also
See Also