diff options
Diffstat (limited to 'src/core/web_contents_adapter.cpp')
-rw-r--r-- | src/core/web_contents_adapter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp index c7b2e6e93..081dbd28d 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -1149,7 +1149,8 @@ void WebContentsAdapter::printToPDF(const QPageLayout &pageLayout, const QString } quint64 WebContentsAdapter::printToPDFCallbackResult(const QPageLayout &pageLayout, - const bool colorMode) + bool colorMode, + bool useCustomMargins) { #if BUILDFLAG(ENABLE_BASIC_PRINTING) Q_D(WebContentsAdapter); @@ -1158,6 +1159,7 @@ quint64 WebContentsAdapter::printToPDFCallbackResult(const QPageLayout &pageLayo d->nextRequestId); PrintViewManagerQt::FromWebContents(webContents())->PrintToPDFWithCallback(pageLayout, colorMode, + useCustomMargins, callback); return d->nextRequestId++; #else |