refactoring: use Document API getCoverPageImage to get cover image

This commit is contained in:
chrox
2014-08-27 11:07:25 +08:00
parent 40bddf0735
commit 0bc3eadcae
8 changed files with 130 additions and 170 deletions

View File

@@ -212,6 +212,10 @@ function Document:getOCRWord(pageno, rect)
return nil
end
function Document:getCoverPageImage()
return nil
end
function Document:renderPage(pageno, rect, zoom, rotation, gamma, render_mode)
local hash = "renderpg|"..self.file.."|"..pageno.."|"..zoom.."|"..rotation.."|"..gamma.."|"..render_mode
local page_size = self:getPageDimensions(pageno, zoom, rotation)