mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
getPageLinks implementation for mupdf #72
This is rough first draft, and provides just dump of all links available on pdf page. Binding to Shift+L is temporary and just for debugging!
This commit is contained in:
@@ -2062,6 +2062,11 @@ function UniReader:searchHighLight(search)
|
||||
end
|
||||
|
||||
|
||||
function UniReader:getPageLinks(pageno)
|
||||
Debug("getPageLinks not supported in this format")
|
||||
return nil
|
||||
end
|
||||
|
||||
-- used in UniReader:showMenu()
|
||||
function UniReader:_drawReadingInfo()
|
||||
local width, height = G_width, G_height
|
||||
@@ -2855,6 +2860,13 @@ function UniReader:addAllCommands()
|
||||
end
|
||||
end
|
||||
)
|
||||
self.commands:add(KEY_L, MOD_SHIFT, "L",
|
||||
"page links",
|
||||
function(unireader)
|
||||
Debug("unireader", unireader)
|
||||
unireader:getPageLinks( unireader.pageno )
|
||||
end
|
||||
)
|
||||
self.commands:add(KEY_BACK,MOD_ALT,"Back",
|
||||
"close document",
|
||||
function(unireader)
|
||||
|
||||
Reference in New Issue
Block a user