Add PDF printing support (issue #1478).

This commit is contained in:
Alexei Bykov
2015-03-24 18:40:08 +03:00
committed by Marshall Greenblatt
parent b6e5310bce
commit 85f83680d7
42 changed files with 1039 additions and 24 deletions

View File

@@ -115,6 +115,15 @@ class CefPrintHandler : public virtual CefBase {
///
/*--cef()--*/
virtual void OnPrintReset() =0;
///
// Return the PDF paper size in device units. Used in combination with
// CefBrowserHost::PrintToPDF().
///
/*--cef()--*/
virtual CefSize GetPdfPaperSize(int device_units_per_inch) {
return CefSize();
}
};
#endif // CEF_INCLUDE_CEF_PRINT_HANDLER_H_