Click or drag to resize

CefBrowserHostPrintToPdf Method

Print the current browser contents to the PDF file specified by |path| and execute |callback| on completion. The caller is responsible for deleting |path| when done. For PDF printing to work on Linux you must implement the CefPrintHandler::GetPdfPaperSize method.

Namespace: Internal.Xilium.CefGlue
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public void PrintToPdf(
	string path,
	CefPdfPrintSettings settings,
	CefPdfPrintCallback callback
)

Parameters

path  String
 
settings  CefPdfPrintSettings
 
callback  CefPdfPrintCallback
 
See Also