diff options
author | Marius <mariausol@gmail.com> | 2010-10-10 22:38:43 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2010-10-10 22:38:43 +0300 |
commit | 16099e33b6d50b37bcddb96e29777a235d2335d7 (patch) | |
tree | 724169a7882d1588f8ee4a4511c73fb9b9a232cd /tex/context/base/lpdf-ren.lua | |
parent | 2040be98036288cccf0384479819e8c0c17e8d8d (diff) | |
download | context-16099e33b6d50b37bcddb96e29777a235d2335d7.tar.gz |
beta 2010.10.10 14:25
Diffstat (limited to 'tex/context/base/lpdf-ren.lua')
-rw-r--r-- | tex/context/base/lpdf-ren.lua | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/tex/context/base/lpdf-ren.lua b/tex/context/base/lpdf-ren.lua index 7c2d96467..33513c0d1 100644 --- a/tex/context/base/lpdf-ren.lua +++ b/tex/context/base/lpdf-ren.lua @@ -53,57 +53,6 @@ function backends.pdf.layerreference(name) return pdfln[name] end --- only flush layers that are used - ---~ function codeinjections.defineviewerlayer(specification) ---~ if textlayers then ---~ local tag = specification.tag ---~ -- todo: reserve ---~ local n = pdfdictionary { ---~ Type = pdf_ocg, ---~ Name = specification.title or "unknown", ---~ Intent = ((specification.kind > 0) and pdf_design) or nil, -- disable layer hiding by user ---~ Usage = ((specification.printable == variables.no) and lpdf_usage) or nil , -- printable or not ---~ } ---~ local nr = pdfreference(pdfflushobject(n)) ---~ pdfln[tag] = nr -- was n ---~ local d = pdfdictionary { ---~ Type = pdf_ocmd, ---~ OCGs = pdfarray { nr }, ---~ } ---~ local dr = pdfreference(pdfflushobject(d)) ---~ pdfld[tag] = dr ---~ textlayers[#textlayers+1] = nr ---~ if specification.visible == variables.start then ---~ videlayers[#videlayers+1] = nr ---~ else ---~ hidelayers[#hidelayers+1] = nr ---~ end ---~ pagelayers[tag] = dr -- check ---~ end ---~ end - ---~ local function flushtextlayers() ---~ if textlayers and #textlayers > 0 then ---~ local d = pdfdictionary { ---~ OCGs = textlayers, ---~ D = pdfdictionary { ---~ Order = textlayers, ---~ ON = videlayers, ---~ OFF = hidelayers, ---~ }, ---~ } ---~ lpdf.addtocatalog("OCProperties",d) ---~ textlayers = nil ---~ end ---~ end - ---~ local function flushpagelayers() -- we can share these ---~ if next(pagelayers) then ---~ lpdf.addtopageresources("Properties",pagelayers) ---~ end ---~ end - local pagelayers, pagelayersreference, cache = nil, nil, { } function codeinjections.defineviewerlayer(specification) |