summaryrefslogtreecommitdiff
path: root/tex/context/base/lpdf-ini.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-02-10 14:40:14 +0200
committerMarius <mariausol@gmail.com>2011-02-10 14:40:14 +0200
commit50888f059727e2f5857de552691eadce571db57f (patch)
treebf6bbe02ffc1cd9d6a0c4144b99aa8a49df06170 /tex/context/base/lpdf-ini.lua
parent9273ab2ccc41973a34fbde3c7667beec8021f2eb (diff)
downloadcontext-50888f059727e2f5857de552691eadce571db57f.tar.gz
beta 2011.02.10 13:23
Diffstat (limited to 'tex/context/base/lpdf-ini.lua')
-rw-r--r--tex/context/base/lpdf-ini.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/tex/context/base/lpdf-ini.lua b/tex/context/base/lpdf-ini.lua
index 0871ea6f0..c8291ff99 100644
--- a/tex/context/base/lpdf-ini.lua
+++ b/tex/context/base/lpdf-ini.lua
@@ -605,13 +605,13 @@ end
lpdf.protectresources = true
-local catalog = pdfdictionary { Type = "Catalog" } -- nicer, but when we assign we nil the Type
-local info = pdfdictionary { Type = "Info" } -- nicer, but when we assign we nil the Type
-local names = pdfdictionary { Type = "Names" } -- nicer, but when we assign we nil the Type
+local catalog = pdfdictionary { Type = pdfconstant("Catalog") } -- nicer, but when we assign we nil the Type
+local info = pdfdictionary { Type = pdfconstant("Info") } -- nicer, but when we assign we nil the Type
+local names = pdfdictionary { Type = pdfconstant("Names") } -- nicer, but when we assign we nil the Type
-local function flushcatalog() if not environment.initex then trace_flush("catalog") catalog.Catalog = nil pdf.catalog = catalog() end end
-local function flushinfo () if not environment.initex then trace_flush("info") info .Info = nil pdf.info = info () end end
-local function flushnames () if not environment.initex then trace_flush("names") names .Names = nil pdf.names = names () end end
+local function flushcatalog() if not environment.initex then trace_flush("catalog") catalog.Type = nil pdf.catalog = catalog() end end
+local function flushinfo () if not environment.initex then trace_flush("info") info .Type = nil pdf.info = info () end end
+local function flushnames () if not environment.initex then trace_flush("names") names .Type = nil pdf.names = names () end end
function lpdf.addtocatalog(k,v) if not (lpdf.protectresources and catalog[k]) then trace_set("catalog",k) catalog[k] = v end end
function lpdf.addtoinfo (k,v) if not (lpdf.protectresources and info [k]) then trace_set("info", k) info [k] = v end end