Skip to content

Commit

Permalink
Fix automatic setting of -compress flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
deven committed Feb 17, 2022
1 parent b587f4f commit ceea208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PDF/Data.pm
Original file line number Diff line number Diff line change
Expand Up @@ -780,8 +780,8 @@ sub filter_stream {

# Decompress stream data if necessary.
if ($filters[0] eq "/FlateDecode") {
# Remember that this PDF file is using compressed streams.
my $self->{-compress} = 1;
# Remember that this PDF file is using compressed streams, unless -compress flag is already set.
$self->{-compress} //= 1;

# Decompress the stream.
my $zlib = new Compress::Raw::Zlib::Inflate;
Expand Down

0 comments on commit ceea208

Please sign in to comment.