diff options
author | Hans Hagen <pragma@wxs.nl> | 2010-09-05 13:23:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2010-09-05 13:23:00 +0200 |
commit | 536e4dd4fe2e98c3cefdb9741507c20f4489e2c0 (patch) | |
tree | d49d2a223c08240cb83c3d702af8226ee05ff84c /tex/context/base/lpdf-ano.lua | |
parent | 0da1a7a94f55a5dc0d318f399eb843303d5b62f6 (diff) | |
download | context-536e4dd4fe2e98c3cefdb9741507c20f4489e2c0.tar.gz |
beta 2010.09.05 13:23
Diffstat (limited to 'tex/context/base/lpdf-ano.lua')
-rw-r--r-- | tex/context/base/lpdf-ano.lua | 17 |
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 |