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:
Dobrica Pavlinusic
2012-09-21 13:28:13 +02:00
parent e1fc748faf
commit 71ff602cd5
3 changed files with 79 additions and 0 deletions

View File

@@ -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)