|
|
|
|
|
|
|
|
|
|
|
|
|
|
for _,c in ipairs(contents) do |
|
|
for _,c in ipairs(contents) do |
|
|
local cobj = maybe_dereference_object(c, pdf, task) |
|
|
local cobj = maybe_dereference_object(c, pdf, task) |
|
|
if cobj then |
|
|
|
|
|
|
|
|
if cobj and type(cobj) == 'table' then |
|
|
obj.contents[#obj.contents + 1] = cobj |
|
|
obj.contents[#obj.contents + 1] = cobj |
|
|
cobj.parent = obj |
|
|
cobj.parent = obj |
|
|
cobj.type = 'content' |
|
|
cobj.type = 'content' |
|
|
|
|
|
|
|
|
span_len = (elts[i + 1][2] + first) - offset |
|
|
span_len = (elts[i + 1][2] + first) - offset |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
if span_len > 0 then |
|
|
|
|
|
|
|
|
if span_len > 0 and offset + span_len < #uncompressed then |
|
|
local obj = { |
|
|
local obj = { |
|
|
major = obj_number, |
|
|
major = obj_number, |
|
|
minor = 0, -- Implicit |
|
|
minor = 0, -- Implicit |