diff options
Diffstat (limited to 'tex/context/base/mkiv/lpdf-res.lua')
-rw-r--r-- | tex/context/base/mkiv/lpdf-res.lua | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/tex/context/base/mkiv/lpdf-res.lua b/tex/context/base/mkiv/lpdf-res.lua index 8b00835ef..d3c591343 100644 --- a/tex/context/base/mkiv/lpdf-res.lua +++ b/tex/context/base/mkiv/lpdf-res.lua @@ -6,23 +6,25 @@ if not modules then modules = { } end modules ['lpdf-res'] = { license = "see context related readme files" } -local codeinjections = backends.codeinjections -local implement = interfaces.implement +local codeinjections = backends.codeinjections -local nuts = nodes.nuts -local tonut = nodes.tonut +local nuts = nodes.nuts +local tonut = nodes.tonut -local setwhd = nuts.setwhd -local setlist = nuts.setlist +local setwhd = nuts.setwhd +local setlist = nuts.setlist -local new_hlist = nuts.pool.hlist +local new_hlist = nuts.pool.hlist -local saveboxresource = tex.saveboxresource -local useboxresource = tex.useboxresource -local getboxresource = tex.getboxresourcedimensions +local boxresources = tex.boxresources +local saveboxresource = boxresources.save +local useboxresource = boxresources.use +local getboxresourcedimensions = boxresources.getdimensions + +local pdfcollectedresources = lpdf.collectedresources function codeinjections.registerboxresource(n,offset) - local r = saveboxresource(n,nil,lpdf.collectedresources(),true,0,offset or 0) -- direct, todo: accept functions as attr/resources + local r = saveboxresource(n,nil,pdfcollectedresources(),true,0,offset or 0) -- direct, todo: accept functions as attr/resources return r end @@ -35,5 +37,5 @@ function codeinjections.restoreboxresource(index) end function codeinjections.boxresourcedimensions(index) - return getboxresource(index) + return getboxresourcedimensions(index) end |