mod: changes APIs in highlighting code

This commit is contained in:
Qingping Hou committed 2012-04-12 11:23:22 +08:00
1 parent face8b44c0
commit 56d4700001
3 files changed
+82 -52

No files matched your search

+3 -10
View File
@@ -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