| Index: pdf/pdfium/pdfium_engine.cc
|
| diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
|
| index 450c2e487e71851cd1a2f105933038bf344a4124..a851901b3f25084f47c5bc75f67a684777b6b085 100644
|
| --- a/pdf/pdfium/pdfium_engine.cc
|
| +++ b/pdf/pdfium/pdfium_engine.cc
|
| @@ -1444,7 +1444,10 @@ FPDF_DOCUMENT PDFiumEngine::CreateSinglePageRasterPdf(
|
| FPDF_PAGEOBJECT temp_img = FPDFPageObj_NewImgeObj(temp_doc);
|
|
|
| std::vector<uint8_t> compressed_bitmap_data;
|
| - int quality = 40;
|
| + // Use quality = 40 as this does not significantly degrade the printed
|
| + // document relative to a normal bitmap and provides better compression than
|
| + // a higher quality setting.
|
| + const int quality = 40;
|
| if (!(print_settings.format & PP_PRINTOUTPUTFORMAT_PDF) &&
|
| (gfx::JPEGCodec::Encode(
|
| bitmap_data, gfx::JPEGCodec::FORMAT_BGRA, FPDFBitmap_GetWidth(bitmap),
|
|
|