summaryrefslogtreecommitdiff
path: root/tex/context/base/lpdf-ano.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/lpdf-ano.lua')
-rw-r--r--tex/context/base/lpdf-ano.lua17
1 files changed, 10 insertions, 7 deletions
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