mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fixes for picdocument
picdocument didn't use the document API correctly
This commit is contained in:
@@ -17,11 +17,11 @@ function PicDocument:init()
|
||||
self.info.has_pages = true
|
||||
self.info.configurable = false
|
||||
|
||||
self:readMetadata()
|
||||
self:_readMetadata()
|
||||
end
|
||||
|
||||
function PicDocument:readMetadata()
|
||||
self.info.number_of_pages = 1
|
||||
function PicDocument:getUsedBBox(pageno)
|
||||
return { x0 = 0, y0 = 0, x1 = self._document.width, y1 = self._document.height }
|
||||
end
|
||||
|
||||
function PicDocument:register(registry)
|
||||
|
||||
Reference in New Issue
Block a user