From 98867787d12f6604694cdea66cc3f63c14887702 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 29 Jun 2020 14:43:40 +0100 Subject: [Minor] Do not decomress encrypted streams when encryption is in xref --- lualib/lua_content/pdf.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lualib/lua_content') diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua index e47c21ef6..8b77213af 100644 --- a/lualib/lua_content/pdf.lua +++ b/lualib/lua_content/pdf.lua @@ -1008,6 +1008,11 @@ local function postprocess_pdf_objects(task, input, pdf) end if obj.ref then parse_object_grammar(obj, task, pdf) + + -- Special early handling + if obj.dict and obj.dict.Type and obj.dict.Type == 'XRef' then + process_xref(task, pdf, obj) + end end end -- cgit v1.2.3