2
0
mirror of https://github.com/koreader/koreader synced 2024-11-16 06:12:56 +00:00
koreader/picviewer.lua
Tigran Aivazian 503c9b077d Initial commit of picviewer.
Conflicts:

	Makefile
	extentions.lua
	pic.c
	reader.lua
2012-10-31 22:09:27 -04:00

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