mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
djvu: honor render mode when reflowing
This commit is contained in:
committed by
Frans de Jonge
parent
0c17941ffb
commit
99d45d7584
@@ -36,6 +36,7 @@ function PdfDocument:init()
|
||||
self.is_open = true
|
||||
self.info.has_pages = true
|
||||
self.info.configurable = true
|
||||
self.render_mode = 0
|
||||
if self._document:needsPassword() then
|
||||
self.is_locked = true
|
||||
else
|
||||
@@ -339,16 +340,16 @@ function PdfDocument:findAllText(pattern, case_insensitive, nb_context_words, ma
|
||||
return self.koptinterface:findAllText(self, pattern, case_insensitive, nb_context_words, max_hits)
|
||||
end
|
||||
|
||||
function PdfDocument:renderPage(pageno, rect, zoom, rotation, gamma, render_mode, hinting)
|
||||
return self.koptinterface:renderPage(self, pageno, rect, zoom, rotation, gamma, render_mode, hinting)
|
||||
function PdfDocument:renderPage(pageno, rect, zoom, rotation, gamma, hinting)
|
||||
return self.koptinterface:renderPage(self, pageno, rect, zoom, rotation, gamma, hinting)
|
||||
end
|
||||
|
||||
function PdfDocument:hintPage(pageno, zoom, rotation, gamma, render_mode)
|
||||
return self.koptinterface:hintPage(self, pageno, zoom, rotation, gamma, render_mode)
|
||||
function PdfDocument:hintPage(pageno, zoom, rotation, gamma)
|
||||
return self.koptinterface:hintPage(self, pageno, zoom, rotation, gamma)
|
||||
end
|
||||
|
||||
function PdfDocument:drawPage(target, x, y, rect, pageno, zoom, rotation, gamma, render_mode)
|
||||
return self.koptinterface:drawPage(self, target, x, y, rect, pageno, zoom, rotation, gamma, render_mode)
|
||||
function PdfDocument:drawPage(target, x, y, rect, pageno, zoom, rotation, gamma)
|
||||
return self.koptinterface:drawPage(self, target, x, y, rect, pageno, zoom, rotation, gamma)
|
||||
end
|
||||
|
||||
function PdfDocument:register(registry)
|
||||
|
||||
Reference in New Issue
Block a user