diff options
author | Hans Hagen <pragma@wxs.nl> | 2014-07-17 13:24:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2014-07-17 13:24:00 +0200 |
commit | e80c75029084c0e8a80286f78150b5a2e320e63c (patch) | |
tree | 6f58c4451079d5d54e0e5db1772a4ec4c67afcb5 /tex/context/base/lpdf-epd.lua | |
parent | d091a10cf3c159a68967e4b50795481a223e652b (diff) | |
download | context-e80c75029084c0e8a80286f78150b5a2e320e63c.tar.gz |
beta 2014.07.17 13:24
Diffstat (limited to 'tex/context/base/lpdf-epd.lua')
-rw-r--r-- | tex/context/base/lpdf-epd.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tex/context/base/lpdf-epd.lua b/tex/context/base/lpdf-epd.lua index a7399f6b4..c37336d07 100644 --- a/tex/context/base/lpdf-epd.lua +++ b/tex/context/base/lpdf-epd.lua @@ -252,7 +252,7 @@ local function getlayers(document) local n = layers.n for i=1,n do local layer = layers[i] ---~ print(document.xrefs[layer]) + -- print(document.xrefs[layer]) t[i] = layer.Name end t.n = n @@ -261,6 +261,10 @@ local function getlayers(document) end end +local function getstructure(document) + -- this might become a tree + return document.Catalog.StructTreeRoot +end local function getpages(document,Catalog) local data = document.data @@ -353,6 +357,7 @@ function lpdf.epdf.load(filename) document.widgets = delayed(document,"widgets", function() return getnames(document,Catalog.Names and Catalog.Names.AcroForm) end) document.embeddedfiles = delayed(document,"embeddedfiles",function() return getnames(document,Catalog.Names and Catalog.Names.EmbeddedFiles) end) document.layers = delayed(document,"layers", function() return getlayers(document) end) + document.structure = delayed(document,"structure", function() return getstructure(document) end) else document = false end |