summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/lpdf-epa.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2023-02-23 21:40:04 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2023-02-23 21:40:04 +0100
commit23b5ef45e7939a00addff726d02d6c29243177af (patch)
tree9b9317684a63bc93fc181c16518293204224430c /tex/context/base/mkxl/lpdf-epa.lmt
parentcd404631d7079a9af603d173eb015f026731aa01 (diff)
downloadcontext-23b5ef45e7939a00addff726d02d6c29243177af.tar.gz
2023-02-23 21:26:00
Diffstat (limited to 'tex/context/base/mkxl/lpdf-epa.lmt')
-rw-r--r--tex/context/base/mkxl/lpdf-epa.lmt29
1 files changed, 28 insertions, 1 deletions
diff --git a/tex/context/base/mkxl/lpdf-epa.lmt b/tex/context/base/mkxl/lpdf-epa.lmt
index 750c008fb..26bb9f703 100644
--- a/tex/context/base/mkxl/lpdf-epa.lmt
+++ b/tex/context/base/mkxl/lpdf-epa.lmt
@@ -549,7 +549,7 @@ local function copyF(v,lock) -- todo: bxor 24
end
-- Speed is not really an issue so we don't optimize this code too much. In the end (after
--- testing we end up with less code that we started with.
+-- testing) we ended up with less code that we started with.
function codeinjections.mergecomments(specification)
local specification, fullname, document = validdocument(specification)
@@ -867,6 +867,33 @@ function codeinjections.mergefields(specification)
end
end
+-- The crappy parts of pdf .. too unpredictable.
+
+function codeinjections.mergerenditions(specification)
+-- local specification, fullname, document = validdocument(specification)
+-- if not document then
+-- return ""
+-- end
+-- local pagenumber = specification.page or 1
+-- local pagedata = document.pages[pagenumber]
+-- local annotations = pagedata and pagedata.Annots
+-- if annotations and #annotations > 0 then
+-- local llx, lly, urx, ury, width, height, xscale, yscale = getmediasize(specification,pagedata,xscale,yscale)
+-- initializelayer(height,width)
+-- --
+-- for i=1,#annotations do
+-- -- we keep the order
+-- local annotation = annotations[i]
+-- if annotation then
+-- local subtype = annotation.Subtype
+-- if subtype == "Screen" then
+-- print("not done")
+-- end
+-- end
+-- end
+-- end
+end
+
-- Beware, bookmarks can be in pdfdoc encoding or in unicode. However, in mkiv we
-- write out the strings in unicode (hex). When we read them in, we check for a bom
-- and convert to utf.