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

Unified Diff: printing/printing_context.cc

Issue 2847003007: Add default PDF dpi setting (Closed)
Patch Set: Use kPointsPerInch Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context.cc
diff --git a/printing/printing_context.cc b/printing/printing_context.cc
index e317924f247498db92dcba54d2d281992c408c9a..b570da0afc89c939db4a488d7d4ddecaba938dd9 100644
--- a/printing/printing_context.cc
+++ b/printing/printing_context.cc
@@ -65,6 +65,8 @@ PrintingContext::Result PrintingContext::UsePdfSettings() {
pdf_settings->SetBoolean(kSettingCollate, true);
pdf_settings->SetInteger(kSettingCopies, 1);
pdf_settings->SetInteger(kSettingColor, printing::COLOR);
+ pdf_settings->SetInteger(kSettingDpiHorizontal, kPointsPerInch);
+ pdf_settings->SetInteger(kSettingDpiVertical, kPointsPerInch);
pdf_settings->SetInteger(kSettingDuplexMode, printing::SIMPLEX);
pdf_settings->SetBoolean(kSettingLandscape, false);
pdf_settings->SetString(kSettingDeviceName, "");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698