summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/lpdf-epa.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-10-19 00:16:55 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-10-19 00:16:55 +0200
commit9d2ad7dea5c20379f6679c57c3b16752b1af445a (patch)
tree45f39853be982c52f7386b968cf4f15f1f70ccce /tex/context/base/mkxl/lpdf-epa.lmt
parent6ca88e6f1f15cea89db047839c3126a501f39eea (diff)
downloadcontext-9d2ad7dea5c20379f6679c57c3b16752b1af445a.tar.gz
2021-10-18 23:13:00
Diffstat (limited to 'tex/context/base/mkxl/lpdf-epa.lmt')
-rw-r--r--tex/context/base/mkxl/lpdf-epa.lmt13
1 files changed, 7 insertions, 6 deletions
diff --git a/tex/context/base/mkxl/lpdf-epa.lmt b/tex/context/base/mkxl/lpdf-epa.lmt
index a88e48a5e..750c008fb 100644
--- a/tex/context/base/mkxl/lpdf-epa.lmt
+++ b/tex/context/base/mkxl/lpdf-epa.lmt
@@ -29,14 +29,16 @@ local report_comment = logs.reporter("backend","comment")
local report_field = logs.reporter("backend","field")
local report_outline = logs.reporter("backend","outline")
-local lpdf = lpdf
-local backends = backends
local context = context
-local nodeinjections = backends.pdf.nodeinjections
+local pdfbackend = backends.registered.pdf
+local nodeinjections = pdfbackend.nodeinjections
+local codeinjections = pdfbackend.codeinjections
+----- registrations = pdfbackend.registrations
local setmacro = tokens.setters.macro
+local lpdf = lpdf
local pdfarray = lpdf.array
local pdfdictionary = lpdf.dictionary
local pdfconstant = lpdf.constant
@@ -62,7 +64,6 @@ local loadpdffile = lpdf.epdf.load
local nameonly = file.nameonly
local variables = interfaces.variables
-local codeinjections = backends.pdf.codeinjections
----- urlescaper = lpegpatterns.urlescaper
----- utftohigh = lpegpatterns.utftohigh
local escapetex = characters.filters.utf.private.escape
@@ -77,7 +78,7 @@ local layerspec = {
"epdfcontent"
}
-local getpos = function() getpos = backends.codeinjections.getpos return getpos() end
+local getpos = function() getpos = codeinjections.getpos return getpos() end
local collected = allocate()
local tobesaved = allocate()
@@ -1013,7 +1014,7 @@ function codeinjections.mergebookmarks(specification)
end
if specification then
local fullname = specification.fullname
- local bookmarks = backends.codeinjections.getbookmarks(fullname)
+ local bookmarks = codeinjections.getbookmarks(fullname)
local realpage = tonumber(specification.page) or 1
for i=1,#bookmarks do
local b = bookmarks[i]