add semi-auto bbox option in page crop dialog

This commit is contained in:
chrox
2013-07-13 11:18:49 +08:00
parent 87296fe884
commit 2e5d2b9930
5 changed files with 35 additions and 8 deletions

View File

@@ -92,8 +92,13 @@ end
function PdfDocument:getPageBBox(pageno)
if self.configurable.text_wrap ~= 1 and self.configurable.trim_page == 1 then
-- auto bbox finding
return self.koptinterface:getAutoBBox(self, pageno)
elseif self.configurable.text_wrap ~= 1 and self.configurable.trim_page == 2 then
-- semi-auto bbox finding
return self.koptinterface:getSemiAutoBBox(self, pageno)
else
-- get saved manual bbox
return Document.getPageBBox(self, pageno)
end
end