mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
mod: changes APIs in highlighting code
This commit is contained in:
@@ -31,16 +31,9 @@ function PDFReader:open(filename)
|
||||
return true
|
||||
end
|
||||
|
||||
-----------[ highlight support ]----------
|
||||
|
||||
function PDFReader:rectCoordTransform(x0, y0, x1, y1)
|
||||
return
|
||||
x0 * self.globalzoom,
|
||||
y1 * self.globalzoom - self.offset_y,
|
||||
x1 - x0,
|
||||
y1 - y0
|
||||
end
|
||||
|
||||
----------------------------------------------------
|
||||
-- highlight support
|
||||
----------------------------------------------------
|
||||
function PDFReader:getText(pageno)
|
||||
local ok, page = pcall(self.doc.openPage, self.doc, pageno)
|
||||
if not ok then
|
||||
|
||||
Reference in New Issue
Block a user