fix: disable alpha in booklet renderer for opaque white background

This commit is contained in:
vicrodh committed 2026-02-26 15:55:06 -06:00
1 parent c66cb5b3f1
commit ad472c8cb3
1 file changed
+2 -2
+2 -2
View File
@@ -204,9 +204,9 @@ pub async fn v2_booklet_render_page(
m
};
// Render page to pixmap (RGB with alpha)
// Render page to pixmap (RGB, no alpha — ensures white background)
let pixmap = pdf_page
.to_pixmap(&matrix, &Colorspace::device_rgb(), true, true)
.to_pixmap(&matrix, &Colorspace::device_rgb(), false, true)
.map_err(|e| format!("Failed to render page: {:?}", e))?;
let actual_width = pixmap.width() as u32;