Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: pdf/pdfium/pdfium_engine.cc

Issue 974183003: Print Preview: Support the duplex preset in PDFs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pdf/pdfium/pdfium_engine.cc
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
index 8f48768b1bcd204db018727be0c84ee5ad273dc8..143ccc97cd564323f722c0fefb77ab435a40657e 100644
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -2466,6 +2466,10 @@ int PDFiumEngine::GetCopiesToPrint() {
return FPDF_VIEWERREF_GetNumCopies(doc_);
}
+int PDFiumEngine::GetDuplexType() {
+ return static_cast<int>(FPDF_VIEWERREF_GetDuplex(doc_));
+}
+
void PDFiumEngine::AppendBlankPages(int num_pages) {
DCHECK(num_pages != 0);
« no previous file with comments | « pdf/pdfium/pdfium_engine.h ('k') | ppapi/c/private/ppp_pdf.h » ('j') | ppapi/c/private/ppp_pdf.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698