add usedbbox support

This commit is contained in:
Qingping Hou
2012-12-02 17:09:32 +08:00
parent 7e04c97b70
commit 7b707ab367
5 changed files with 66 additions and 13 deletions

View File

@@ -41,7 +41,7 @@ function PdfDocument:getUsedBBox(pageno)
end
local page = self._document:openPage(pageno)
local used = {}
used.x, used.y, used.w, used.h = page:getUsedBBox()
used.x0, used.y0, used.x1, used.y1 = page:getUsedBBox()
--@TODO give size for cacheitem? 02.12 2012 (houqp)
Cache:insert(hash, CacheItem:new{
ubbox = used,