diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-12-15 18:53:51 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-12-15 18:53:51 +0100 |
commit | 3b6d2d411fdb8fdaef0a4b8045bfdc60a70ce4f0 (patch) | |
tree | faad59ef7e0622a285d35a5484373247cc729bbb /tex/context/base/mkiv/lpdf-wid.lua | |
parent | 2683d42fe95c59c52a9d7c334292d0a5a15c030a (diff) | |
download | context-3b6d2d411fdb8fdaef0a4b8045bfdc60a70ce4f0.tar.gz |
2019-12-15 17:34:00
Diffstat (limited to 'tex/context/base/mkiv/lpdf-wid.lua')
-rw-r--r-- | tex/context/base/mkiv/lpdf-wid.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/lpdf-wid.lua b/tex/context/base/mkiv/lpdf-wid.lua index d1c88ae35..b8648b32a 100644 --- a/tex/context/base/mkiv/lpdf-wid.lua +++ b/tex/context/base/mkiv/lpdf-wid.lua @@ -57,6 +57,7 @@ local v_max = variables.max local v_yes = variables.yes local pdfconstant = lpdf.constant +local pdfnull = lpdf.null local pdfdictionary = lpdf.dictionary local pdfarray = lpdf.array local pdfreference = lpdf.reference @@ -254,7 +255,8 @@ local function flushembeddedfiles() for tag, reference in sortedhash(filestreams) do if not reference then report_attachment("unreferenced file, tag %a",tag) - elseif referenced[tag] == "hidden" then +-- elseif referenced[tag] == "hidden" then + elseif referenced[tag] ~= "hidden" then e[#e+1] = pdfstring(tag) e[#e+1] = reference -- already a reference else @@ -440,7 +442,7 @@ function nodeinjections.attachfile(specification) CA = analyzetransparency(specification.transparencyvalue), AP = appearance, OC = analyzelayer(specification.layer), - F = 0, -- another rediculous need to satisfy validation (optional and zero is default) + F = pdfnull(), -- another rediculous need to satisfy validation } local width = specification.width or 0 local height = specification.height or 0 @@ -532,7 +534,7 @@ function nodeinjections.comment(specification) -- brrr: seems to be done twice Name = name, NM = pdfstring("comment:"..nofcomments), AP = appearance, - F = 0, -- another rediculous need to satisfy validation (optional and zero is default) + F = pdfnull(), -- another rediculous need to satisfy validation } local width = specification.width or 0 local height = specification.height or 0 |