aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_content/pdf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_content/pdf.lua')
-rw-r--r--lualib/lua_content/pdf.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua
index 516eb8be2..b3fa03f28 100644
--- a/lualib/lua_content/pdf.lua
+++ b/lualib/lua_content/pdf.lua
@@ -54,7 +54,7 @@ local pdf_patterns = {
},
start_object = {
patterns = {
- [=[[\r\n\0]\s*\d+ \d+ obj[\r\n]]=]
+ [=[[\r\n\0]\s*\d+\s+\d+\s+obj[\r\n]]=]
}
},
end_object = {
@@ -408,7 +408,7 @@ local function process_dict(task, pdf, obj, dict)
local resources = dict.Resources
if resources and type(resources) == 'table' then
- obj.resources = resources
+ obj.resources = maybe_dereference_object(resources, pdf, task)
else
-- Fucking pdf: we need to inherit from parent
resources = {}