mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
50d5604c79
closes #26
19 lines
360 B
Lua
19 lines
360 B
Lua
require "unireader"
|
|
|
|
PDFReader = UniReader:new{
|
|
newDC = function()
|
|
print("pdf.newDC")
|
|
return pdf.newDC()
|
|
end,
|
|
}
|
|
|
|
function PDFReader:init()
|
|
self.nulldc = self.newDC();
|
|
end
|
|
|
|
-- open a PDF file and its settings store
|
|
function PDFReader:open(filename, password)
|
|
self.doc = pdf.openDocument(filename, password or "")
|
|
return self:loadSettings(filename)
|
|
end
|