Skip to content

Commit

Permalink
[Minor] Do not decomress encrypted streams when encryption is in xref
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Jun 29, 2020
1 parent 05675bd commit 9886778
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lualib/lua_content/pdf.lua
Expand Up @@ -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

Expand Down

0 comments on commit 9886778

Please sign in to comment.