Skip to content

Commit

Permalink
Decompress stream in Page:getStream().
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasMatthias committed Jun 10, 2021
1 parent 987646c commit 1a45462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flare-obj.lua
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ function Page:getStream(obj, key)
return user
else
local stream, dict = pdfe.getstream(obj, key)
local content = pdfe.readwholestream(stream)
local content = pdfe.readwholestream(stream, true)
local dict = self:getDictionary2(dict)
local n = pdf.immediateobj('stream', content, self:formatTable(dict))
return string.format('%d 0 R', n)
Expand Down

0 comments on commit 1a45462

Please sign in to comment.