book reading statistics for djvu documents

This commit is contained in:
chrox committed 2016-07-15 23:00:46 +08:00
1 parent d4c31d683f
commit 1d887f4fe1
5 files changed
+14 -6

No files matched your search

+8
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