Fix print to PDF (issue #2129)

This commit is contained in:
Marshall Greenblatt 2017-04-06 11:20:07 -04:00
parent 9ea5b3bbca
commit f035232c08
1 changed files with 3 additions and 2 deletions

View File

@ -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,