mirror of
https://github.com/koreader/koreader
synced 2024-11-18 03:25:46 +00:00
50d5604c79
closes #26
20 lines
378 B
Lua
20 lines
378 B
Lua
require "unireader"
|
|
|
|
DJVUReader = UniReader:new{
|
|
newDC = function()
|
|
print("djvu.newDC")
|
|
return djvu.newDC()
|
|
end,
|
|
}
|
|
|
|
function DJVUReader:init()
|
|
self.nulldc = self.newDC()
|
|
end
|
|
|
|
-- open a DJVU file and its settings store
|
|
-- DJVU does not support password yet
|
|
function DJVUReader:open(filename)
|
|
self.doc = djvu.openDocument(filename)
|
|
return self:loadSettings(filename)
|
|
end
|