separate setting paint_white for libk2pdfopt

This commit is contained in:
kerivin
2025-08-04 19:58:49 +03:00
parent a5f7695b12
commit 199e60f251
2 changed files with 2 additions and 1 deletions

2
base

Submodule base updated: b4e76037fa...be7bbd1f69

View File

@@ -153,6 +153,7 @@ function KoptInterface:createContext(doc, pageno, bbox)
kc:setContrast(1 / doc.configurable.contrast)
if doc.configurable.white_threshold ~= 255 then
kc:setWhite(doc.configurable.white_threshold)
kc:setPaintWhite(1)
end
kc:setDefectSize(doc.configurable.defect_size)
kc:setLineSpacing(doc.configurable.line_spacing)