Mohammad Rasim
Committed by David PHAM-VAN

make pdf background transparent on linux

... ... @@ -288,8 +288,8 @@ void print_job::raster_pdf(const uint8_t data[],
auto bWidth = static_cast<int>(width * scale);
auto bHeight = static_cast<int>(height * scale);
auto bitmap = FPDFBitmap_Create(bWidth, bHeight, 0);
FPDFBitmap_FillRect(bitmap, 0, 0, bWidth, bHeight, 0xffffffff);
auto bitmap = FPDFBitmap_Create(bWidth, bHeight, 1);
FPDFBitmap_FillRect(bitmap, 0, 0, bWidth, bHeight, 0x00ffffff);
FPDF_RenderPageBitmap(bitmap, page, 0, 0, bWidth, bHeight, 0,
FPDF_ANNOT | FPDF_LCD_TEXT | FPDF_NO_NATIVETEXT);
... ...