Skip to content

Commit

Permalink
Remove filter key from stream after decompressing.
Browse files Browse the repository at this point in the history
  • Loading branch information
deven committed Jan 22, 2021
1 parent 4004ed6 commit 9113aff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/PDF/Data.pm
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,9 @@ sub filter_stream {
} else {
croak "Object #$stream->{-id}: Stream inflation failed! ($zlib->msg)\n";
}

# Stream is no longer compressed.
delete $stream->{Filter};
}
}

Expand Down

0 comments on commit 9113aff

Please sign in to comment.