mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
192 B
Lua
12 lines
192 B
Lua
12 years ago
|
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
|