Skip to content

Commit

Permalink
Fix method call to compress streams.
Browse files Browse the repository at this point in the history
  • Loading branch information
deven committed Dec 17, 2020
1 parent 13810e9 commit 8e486fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PDF/Data.pm
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ sub write_object {
# For streams, compress the stream or update the length metadata.
if (is_stream $object) {
if ($self->{-compress}) {
$object = compress_stream $object;
$object = $self->compress_stream($object);
} else {
$object->{Length} = length $object->{-data};
}
Expand Down

0 comments on commit 8e486fe

Please sign in to comment.