mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add auto page crop
This commit is contained in:
@@ -67,6 +67,14 @@ function PdfDocument:getUsedBBox(pageno)
|
||||
return used
|
||||
end
|
||||
|
||||
function PdfDocument:getPageBBox(pageno)
|
||||
if self.configurable.text_wrap ~= 1 and self.configurable.trim_page == 1 then
|
||||
return self.koptinterface:getAutoBBox(self, pageno)
|
||||
else
|
||||
return Document.getPageBBox(self, pageno)
|
||||
end
|
||||
end
|
||||
|
||||
function PdfDocument:getPageDimensions(pageno, zoom, rotation)
|
||||
if self.configurable.text_wrap == 1 then
|
||||
return self.koptinterface:getPageDimensions(self, pageno, zoom, rotation)
|
||||
|
||||
Reference in New Issue
Block a user