From 536e4dd4fe2e98c3cefdb9741507c20f4489e2c0 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Sun, 5 Sep 2010 13:23:00 +0200 Subject: beta 2010.09.05 13:23 --- tex/context/base/lpdf-ano.lua | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'tex/context/base/lpdf-ano.lua') diff --git a/tex/context/base/lpdf-ano.lua b/tex/context/base/lpdf-ano.lua index ef1f31ab6..a56c8fdeb 100644 --- a/tex/context/base/lpdf-ano.lua +++ b/tex/context/base/lpdf-ano.lua @@ -245,9 +245,7 @@ function codeinjections.prerollreference(actions) -- share can become option end end -local shareannotations experiments.register("backend.shareannotations",function() shareannotations = true end) - -if not shareannotations then +local lln = latelua_node() if not node.has_field(lln,'string') then function nodeinjections.reference(width,height,depth,prerolled) -- keep this one if prerolled then @@ -258,8 +256,13 @@ if not shareannotations then end end + function codeinjections.finishreference() + end + else + report_references("hashing annotations") + local delayed = { } local hashed = { } local sharing = true -- we can do this for special refs (so we need an extra argument) @@ -290,8 +293,8 @@ else if not n then n = pdfreserveobject() -- todo: share delayed[n] = annot ---~ n = pdf.obj(annot) ---~ pdf.refobj(n) + --~ n = pdf.obj(annot) + --~ pdf.refobj(n) if sharing then hashed[annot] = n end @@ -306,13 +309,13 @@ else if trace_references then report_references("w=%s, h=%s, d=%s, a=%s",width,height,depth,prerolled) end ---~ local luacode = format("backends.pdf.codeinjections.finishreference(%s,%s,%s,'%s')",width,height,depth,prerolled) + -- local luacode = format("backends.pdf.codeinjections.finishreference(%s,%s,%s,'%s')",width,height,depth,prerolled) local luacode = format("_bpnf_(%s,%s,%s,'%s')",width,height,depth,prerolled) return latelua_node(luacode) end end -end +end node.free(lln) function nodeinjections.destination(width,height,depth,name,view) if trace_destinations then -- cgit v1.2.3