2
0
mirror of https://github.com/koreader/koreader synced 2024-11-18 03:25:46 +00:00
koreader/pdfreader.lua

19 lines
360 B
Lua
Raw Normal View History

2012-03-05 01:46:16 +00:00
require "unireader"
2012-03-05 01:46:16 +00:00
PDFReader = UniReader:new{
newDC = function()
print("pdf.newDC")
return pdf.newDC()
end,
}
2012-03-05 01:46:16 +00:00
function PDFReader:init()
self.nulldc = self.newDC();
end
-- open a PDF file and its settings store
function PDFReader:open(filename, password)
2012-03-05 01:46:16 +00:00
self.doc = pdf.openDocument(filename, password or "")
return self:loadSettings(filename)
end