summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/lpdf-wid.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-09-03 19:26:31 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-09-03 19:26:31 +0200
commit26a37aadfa1c26b389c7ef9c5f310a1e2ddf596c (patch)
treec07ed2b1ed3fe8b87d85b3631b05bc2e443ab2fe /tex/context/base/mkxl/lpdf-wid.lmt
parent6f5d01cee63d25d2baa00a7bae907e8d118c5d66 (diff)
downloadcontext-26a37aadfa1c26b389c7ef9c5f310a1e2ddf596c.tar.gz
2021-09-03 18:47:00
Diffstat (limited to 'tex/context/base/mkxl/lpdf-wid.lmt')
-rw-r--r--tex/context/base/mkxl/lpdf-wid.lmt6
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/mkxl/lpdf-wid.lmt b/tex/context/base/mkxl/lpdf-wid.lmt
index 87cfcccd1..29b0b2a9f 100644
--- a/tex/context/base/mkxl/lpdf-wid.lmt
+++ b/tex/context/base/mkxl/lpdf-wid.lmt
@@ -60,7 +60,10 @@ local v_auto = variables.auto
local v_embed = variables.embed
local v_max = variables.max
local v_yes = variables.yes
+local v_no = variables.no
local v_compress = variables.compress
+local v_list = variables.list
+local v_title = variables.title
local pdfconstant = lpdf.constant
local pdfnull = lpdf.null
@@ -709,8 +712,9 @@ local function insertrendering(specification)
descriptor = codeinjections.embedfile {
file = filename,
mimetype = mimetype, -- yes or no
+ title = option[v_title],
compress = option[v_compress] or false,
- forcereference = true,
+ forcereference = option[v_list] ~= v_no,
}
end
local clip = pdfdictionary {