2024-02-24 12:01:31 +01:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< title > cef4delphi: uCEFInterfaces: Interface ICefPrintHandler< / title >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
2026-04-04 18:01:24 +02:00
< meta name = "generator" content = "PasDoc 1.0.4" >
2024-02-24 12:01:31 +01:00
< meta http-equiv = "content-type" content = "text/html; charset=utf-8" >
2026-03-19 13:17:28 +01:00
< link rel = "StyleSheet" type = "text/css" href = "bootstrap.min.css" >
2024-02-24 12:01:31 +01:00
< link rel = "StyleSheet" type = "text/css" href = "pasdoc.css" >
2026-03-30 18:44:20 +02:00
< style type = "text/css" >
body { margin : 0.5 em ; }
. badge { padding : 0.1 em 0.5 em ; color : white ; }
< / style > < / head >
2024-02-24 12:01:31 +01:00
< body >
< span id = "ICefPrintHandler" > < / span > < h1 class = "cio" > Interface ICefPrintHandler< / h1 >
< div class = "sections" >
2026-03-19 13:17:28 +01:00
< div class = "one_section" > < a class = "section" href = "#PasDoc-Description" > Description< / a > < / div > < div class = "one_section" > < a class = "section" href = "#PasDoc-Hierarchy" > Hierarchy< / a > < / div > < div class = "one_section" > < a class = "section" href = "#PasDoc-Methods" > Methods< / a > < / div > < / div >
2024-02-24 12:01:31 +01:00
< span id = "PasDoc-Description" > < / span > < h2 class = "unit" > Unit< / h2 >
< p class = "unitlink" >
< a href = "uCEFInterfaces.html" > uCEFInterfaces< / a > < / p >
< h2 class = "declaration" > Declaration< / h2 >
< p class = "declaration" >
< code > type ICefPrintHandler = interface(< a class = "normal" href = "uCEFInterfaces.ICefBaseRefCounted.html" > ICefBaseRefCounted< / a > )< / code > < / p >
< h2 class = "description" > Description< / h2 >
< p >
Implement this interface to handle printing on Linux. Each browser will have only one print job in progress at a time. The functions of this interface will be called on the browser process UI thread. < / p >
< p >
< p > UNKNOWN
< p > < see href=" < a href = "https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_print_handler_capi.h" > https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_print_handler_capi.h< / a > " > CEF source file: /include/capi/cef_print_handler_capi.h (cef_print_handler_t))< / p >
< span id = "PasDoc-Hierarchy" > < / span > < h2 class = "hierarchy" > Hierarchy< / h2 >
< ul class = "hierarchy" > < li class = "ancestor" > IInterface< / li >
< li class = "ancestor" > < a class = "normal" href = "uCEFInterfaces.ICefBaseRefCounted.html" > ICefBaseRefCounted< / a > < / li >
< li class = "thisitem" > ICefPrintHandler< / li > < / ul > < h2 class = "overview" > Overview< / h2 >
< span id = "PasDoc-Methods" > < / span > < h3 class = "summary" > Methods< / h3 >
< table class = "summary wide_list" >
2026-03-19 13:17:28 +01:00
< tr class = "list visibility-public" >
< td class = "visibility" > < span class = "badge vis-public" > Public< / span > < / td >
2024-02-24 12:01:31 +01:00
< td class = "itemcode" > < code > procedure < strong > < a href = "uCEFInterfaces.ICefPrintHandler.html#OnPrintStart-ICefBrowser-" > OnPrintStart< / a > < / strong > (const browser: < a href = "uCEFInterfaces.ICefBrowser.html" > ICefBrowser< / a > );< / code > < / td >
< / tr >
2026-03-19 13:17:28 +01:00
< tr class = "list2 visibility-public" >
< td class = "visibility" > < span class = "badge vis-public" > Public< / span > < / td >
2024-02-24 12:01:31 +01:00
< td class = "itemcode" > < code > procedure < strong > < a href = "uCEFInterfaces.ICefPrintHandler.html#OnPrintSettings-ICefBrowser-ICefPrintSettings-boolean-" > OnPrintSettings< / a > < / strong > (const browser: < a href = "uCEFInterfaces.ICefBrowser.html" > ICefBrowser< / a > ; const settings: < a href = "uCEFInterfaces.ICefPrintSettings.html" > ICefPrintSettings< / a > ; getDefaults: boolean);< / code > < / td >
< / tr >
2026-03-19 13:17:28 +01:00
< tr class = "list visibility-public" >
< td class = "visibility" > < span class = "badge vis-public" > Public< / span > < / td >
2024-02-24 12:01:31 +01:00
< td class = "itemcode" > < code > procedure < strong > < a href = "uCEFInterfaces.ICefPrintHandler.html#OnPrintDialog-ICefBrowser-boolean-ICefPrintDialogCallback-boolean-" > OnPrintDialog< / a > < / strong > (const browser: < a href = "uCEFInterfaces.ICefBrowser.html" > ICefBrowser< / a > ; hasSelection: boolean; const callback: < a href = "uCEFInterfaces.ICefPrintDialogCallback.html" > ICefPrintDialogCallback< / a > ; var aResult: boolean);< / code > < / td >
< / tr >
2026-03-19 13:17:28 +01:00
< tr class = "list2 visibility-public" >
< td class = "visibility" > < span class = "badge vis-public" > Public< / span > < / td >
2024-02-24 12:01:31 +01:00
< td class = "itemcode" > < code > procedure < strong > < a href = "uCEFInterfaces.ICefPrintHandler.html#OnPrintJob-ICefBrowser-ustring-ustring-ICefPrintJobCallback-boolean-" > OnPrintJob< / a > < / strong > (const browser: < a href = "uCEFInterfaces.ICefBrowser.html" > ICefBrowser< / a > ; const documentName, PDFFilePath: < a href = "uCEFTypes.html#ustring" > ustring< / a > ; const callback: < a href = "uCEFInterfaces.ICefPrintJobCallback.html" > ICefPrintJobCallback< / a > ; var aResult: boolean);< / code > < / td >
< / tr >
2026-03-19 13:17:28 +01:00
< tr class = "list visibility-public" >
< td class = "visibility" > < span class = "badge vis-public" > Public< / span > < / td >
2024-02-24 12:01:31 +01:00
< td class = "itemcode" > < code > procedure < strong > < a href = "uCEFInterfaces.ICefPrintHandler.html#OnPrintReset-ICefBrowser-" > OnPrintReset< / a > < / strong > (const browser: < a href = "uCEFInterfaces.ICefBrowser.html" > ICefBrowser< / a > );< / code > < / td >
< / tr >
2026-03-19 13:17:28 +01:00
< tr class = "list2 visibility-public" >
< td class = "visibility" > < span class = "badge vis-public" > Public< / span > < / td >
2024-02-24 12:01:31 +01:00
< td class = "itemcode" > < code > procedure < strong > < a href = "uCEFInterfaces.ICefPrintHandler.html#GetPDFPaperSize-ICefBrowser-integer-TCefSize-" > GetPDFPaperSize< / a > < / strong > (const browser: < a href = "uCEFInterfaces.ICefBrowser.html" > ICefBrowser< / a > ; deviceUnitsPerInch: integer; var aResult: < a href = "uCEFTypes.TCefSize.html" > TCefSize< / a > );< / code > < / td >
< / tr >
2026-03-19 13:17:28 +01:00
< tr class = "list visibility-public" >
< td class = "visibility" > < span class = "badge vis-public" > Public< / span > < / td >
2024-02-24 12:01:31 +01:00
< td class = "itemcode" > < code > procedure < strong > < a href = "uCEFInterfaces.ICefPrintHandler.html#RemoveReferences" > RemoveReferences< / a > < / strong > ;< / code > < / td >
< / tr >
< / table >
< h2 class = "description" > Description< / h2 >
< h3 class = "detail" > Methods< / h3 >
2026-03-19 13:17:28 +01:00
< table class = "detail visibility-public wide_list" >
< tr class = "list visibility-public" >
< td class = "visibility" > < span class = "badge vis-public" > Public< / span > < / td >
2024-02-24 12:01:31 +01:00
< td class = "itemcode" > < span id = "OnPrintStart-ICefBrowser-" > < / span > < code > procedure < strong > OnPrintStart< / strong > (const browser: < a href = "uCEFInterfaces.ICefBrowser.html" > ICefBrowser< / a > );< / code > < / td >
< / tr >
< tr > < td colspan = "2" >
< p >
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. ICefBrowserHost.print(), JavaScript window.print() or PDF extension print button). < / p >
< h6 class = "description_section" > Attributes< / h6 >
< dl class = "attributes" >
< dt > GUID['{2831D5C9-6E2B-4A30-A65A-0F4435371EFC}']< / dt >
< dd > < / dd >
< / dl >
< / td > < / tr >
< / table >
2026-03-19 13:17:28 +01:00
< table class = "detail visibility-public wide_list" >
< tr class = "list visibility-public" >
< td class = "visibility" > < span class = "badge vis-public" > Public< / span > < / td >
2024-02-24 12:01:31 +01:00
< td class = "itemcode" > < span id = "OnPrintSettings-ICefBrowser-ICefPrintSettings-boolean-" > < / span > < code > procedure < strong > OnPrintSettings< / strong > (const browser: < a href = "uCEFInterfaces.ICefBrowser.html" > ICefBrowser< / a > ; const settings: < a href = "uCEFInterfaces.ICefPrintSettings.html" > ICefPrintSettings< / a > ; getDefaults: boolean);< / code > < / td >
< / tr >
< tr > < td colspan = "2" >
< p >
Synchronize |settings| with client state. If |get_defaults| is true (1) then populate |settings| with the default print settings. Do not keep a reference to |settings| outside of this callback. < / p >
< / td > < / tr >
< / table >
2026-03-19 13:17:28 +01:00
< table class = "detail visibility-public wide_list" >
< tr class = "list visibility-public" >
< td class = "visibility" > < span class = "badge vis-public" > Public< / span > < / td >
2024-02-24 12:01:31 +01:00
< td class = "itemcode" > < span id = "OnPrintDialog-ICefBrowser-boolean-ICefPrintDialogCallback-boolean-" > < / span > < code > procedure < strong > OnPrintDialog< / strong > (const browser: < a href = "uCEFInterfaces.ICefBrowser.html" > ICefBrowser< / a > ; hasSelection: boolean; const callback: < a href = "uCEFInterfaces.ICefPrintDialogCallback.html" > ICefPrintDialogCallback< / a > ; var aResult: boolean);< / code > < / td >
< / tr >
< tr > < td colspan = "2" >
< p >
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. < / p >
< / td > < / tr >
< / table >
2026-03-19 13:17:28 +01:00
< table class = "detail visibility-public wide_list" >
< tr class = "list visibility-public" >
< td class = "visibility" > < span class = "badge vis-public" > Public< / span > < / td >
2024-02-24 12:01:31 +01:00
< td class = "itemcode" > < span id = "OnPrintJob-ICefBrowser-ustring-ustring-ICefPrintJobCallback-boolean-" > < / span > < code > procedure < strong > OnPrintJob< / strong > (const browser: < a href = "uCEFInterfaces.ICefBrowser.html" > ICefBrowser< / a > ; const documentName, PDFFilePath: < a href = "uCEFTypes.html#ustring" > ustring< / a > ; const callback: < a href = "uCEFInterfaces.ICefPrintJobCallback.html" > ICefPrintJobCallback< / a > ; var aResult: boolean);< / code > < / td >
< / tr >
< tr > < td colspan = "2" >
< p >
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. < / p >
< / td > < / tr >
< / table >
2026-03-19 13:17:28 +01:00
< table class = "detail visibility-public wide_list" >
< tr class = "list visibility-public" >
< td class = "visibility" > < span class = "badge vis-public" > Public< / span > < / td >
2024-02-24 12:01:31 +01:00
< td class = "itemcode" > < span id = "OnPrintReset-ICefBrowser-" > < / span > < code > procedure < strong > OnPrintReset< / strong > (const browser: < a href = "uCEFInterfaces.ICefBrowser.html" > ICefBrowser< / a > );< / code > < / td >
< / tr >
< tr > < td colspan = "2" >
< p >
Reset client state related to printing. < / p >
< / td > < / tr >
< / table >
2026-03-19 13:17:28 +01:00
< table class = "detail visibility-public wide_list" >
< tr class = "list visibility-public" >
< td class = "visibility" > < span class = "badge vis-public" > Public< / span > < / td >
2024-02-24 12:01:31 +01:00
< td class = "itemcode" > < span id = "GetPDFPaperSize-ICefBrowser-integer-TCefSize-" > < / span > < code > procedure < strong > GetPDFPaperSize< / strong > (const browser: < a href = "uCEFInterfaces.ICefBrowser.html" > ICefBrowser< / a > ; deviceUnitsPerInch: integer; var aResult: < a href = "uCEFTypes.TCefSize.html" > TCefSize< / a > );< / code > < / td >
< / tr >
< tr > < td colspan = "2" >
< p >
Return the PDF paper size in device units. Used in combination with ICefBrowserHost.PrintToPdf(). < / p >
< / td > < / tr >
< / table >
2026-03-19 13:17:28 +01:00
< table class = "detail visibility-public wide_list" >
< tr class = "list visibility-public" >
< td class = "visibility" > < span class = "badge vis-public" > Public< / span > < / td >
2024-02-24 12:01:31 +01:00
< td class = "itemcode" > < span id = "RemoveReferences" > < / span > < code > procedure < strong > RemoveReferences< / strong > ;< / code > < / td >
< / tr >
< tr > < td colspan = "2" >
< p >
Custom procedure to clear all references. < / p >
< / td > < / tr >
< / table >
2026-04-04 18:01:24 +02:00
< hr > < span class = "appinfo" > < em > Generated by < a href = "https://pasdoc.github.io/" > PasDoc 1.0.4< / a > . < / em >
2024-02-24 12:01:31 +01:00
< / span >
< / body > < / html >