book reading statistics for djvu documents

This commit is contained in:
chrox
2016-07-15 22:58:41 +08:00
parent d4c31d683f
commit 1d887f4fe1
5 changed files with 14 additions and 6 deletions

View File

@@ -41,6 +41,14 @@ function DjvuDocument:init()
self:_readMetadata()
end
function DjvuDocument:getProps()
local _, _, docname = self.file:find(".*/(.*)")
docname = docname or self.file
return {
title = docname:match("(.*)%.")
}
end
function DjvuDocument:getPageTextBoxes(pageno)
return self._document:getPageText(pageno)
end