kopt: color support

Keep colors when reflowing documents.
This commit is contained in:
Benoit Pierre
2024-07-14 22:00:31 +02:00
committed by Frans de Jonge
parent cb002f3d1f
commit 0c17941ffb
5 changed files with 14 additions and 36 deletions

View File

@@ -169,6 +169,7 @@ function KoptInterface:getContextHash(doc, pageno, bbox, hash_list)
local canvas_size = CanvasContext:getSize()
table.insert(hash_list, doc.file)
table.insert(hash_list, doc.mod_time)
table.insert(hash_list, doc.render_color and 'color' or 'bw')
table.insert(hash_list, pageno)
doc.configurable:hash(hash_list)
table.insert(hash_list, bbox.x0)