Click or drag to resize
CfxPrintHandler Class

[This is preliminary documentation and is subject to change.]

Implement this structure to handle printing on Linux. The functions of this structure will be called on the browser process UI thread.
Inheritance Hierarchy
SystemObject
  ChromiumCfxObject
    ChromiumCfxBase
      ChromiumCfxClientBase
        ChromiumCfxPrintHandler

Namespace: Chromium
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxPrintHandler : CfxClientBase

The CfxPrintHandler type exposes the following members.

Constructors
  NameDescription
Public methodCfxPrintHandler
Initializes a new instance of the CfxPrintHandler class
Top
Properties
  NameDescription
Public propertyCallbacksDisabled
When true, all CEF callback events are disabled for this handler. Incoming callbacks will return default values to CEF.
(Inherited from CfxClientBase.)
Public propertyNativePtr
Provides access to the underlying native cef struct. This is a refcounted client struct derived from cef_base_t. Add a ref in order to keep it alive when this managed object go out of scope.
(Inherited from CfxClientBase.)
Top
Events
  NameDescription
Public eventGetPdfPaperSize
Return the PDF paper size in device units. Used in combination with CfxBrowserHost.PrintToPdf().
Public eventOnPrintDialog
Show the print dialog. Execute |Callback| once the dialog is dismissed. Return true (1) if the dialog will be displayed or false (0) to cancel the printing immediately.
Public eventOnPrintJob
Send the print job to the printer. Execute |Callback| once the job is completed. Return true (1) if the job will proceed or false (0) to cancel the job immediately.
Public eventOnPrintReset
Reset client state related to printing.
Public eventOnPrintSettings
Synchronize |Settings| with client state. If |GetDefaults| is true (1) then populate |Settings| with the default print settings. Do not keep a reference to |Settings| outside of this callback.
Public eventOnPrintStart
Called when printing has started for the specified |Browser|. This function will be called before the other OnPrint*() functions and irrespective of how printing was initiated (e.g. CfxBrowserHost.Print(), JavaScript window.print() or PDF extension print button).
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_print_handler_capi.h.
See Also