mirror of
https://github.com/koreader/koreader
synced 2024-11-11 19:11:14 +00:00
12 lines
192 B
Lua
12 lines
192 B
Lua
|
require "unireader"
|
||
|
|
||
|
PICViewer = UniReader:new{}
|
||
|
|
||
|
function PICViewer:open(filename)
|
||
|
ok, self.doc = pcall(pic.openDocument, filename)
|
||
|
if not ok then
|
||
|
return ok, self.doc
|
||
|
end
|
||
|
return ok
|
||
|
end
|