Commit 2f6475c0 authored by Marshall Greenblatt's avatar Marshall Greenblatt

Fix print to PDF (issue #2129)

parent 33b52839
......@@ -47,8 +47,7 @@ void FillInDictionaryFromPdfPrintSettings(
print_settings.SetInteger(kSettingCopies, 1);
print_settings.SetBoolean(kSettingCollate, false);
print_settings.SetString(kSettingDeviceName, "");
print_settings.SetInteger(kSettingScaleFactor,
pdf_settings.scale_factor > 0 ? pdf_settings.scale_factor : 100);
print_settings.SetBoolean(kSettingRasterizePdf, false);
print_settings.SetBoolean(kSettingGenerateDraftData, false);
print_settings.SetBoolean(kSettingPreviewModifiable, false);
......@@ -60,6 +59,8 @@ void FillInDictionaryFromPdfPrintSettings(
!!pdf_settings.backgrounds_enabled);
print_settings.SetBoolean(kSettingHeaderFooterEnabled,
!!pdf_settings.header_footer_enabled);
print_settings.SetInteger(kSettingScaleFactor,
pdf_settings.scale_factor > 0 ? pdf_settings.scale_factor : 100);
if (pdf_settings.header_footer_enabled) {
print_settings.SetString(kSettingHeaderFooterTitle,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment