mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
Bookmarks: fix sort within one page (#8616)
Accurate sorting of bookmarks located in one page depending on their positions in text.
This commit is contained in:
@@ -98,6 +98,10 @@ function PdfDocument:unlock(password)
|
||||
return true
|
||||
end
|
||||
|
||||
function PdfDocument:comparePositions(pos1, pos2)
|
||||
return self.koptinterface:comparePositions(self, pos1, pos2)
|
||||
end
|
||||
|
||||
function PdfDocument:getPageTextBoxes(pageno)
|
||||
local page = self._document:openPage(pageno)
|
||||
local text = page:getPageText()
|
||||
|
||||
Reference in New Issue
Block a user