Skip to content

Commit

Permalink
fix png decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
s3bk committed Nov 24, 2023
1 parent fa0b4d5 commit 53bebec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pdf/src/object/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ impl ImageXObject {
let global_data = p.globals.as_ref().map(|s| s.data(resolve)).transpose()?;
jbig2_decode(&data, global_data.as_deref().unwrap_or_default())?
},
StreamFilter::FlateDecode(ref p) => flate_decode(&data, p)?,
_ => unreachable!()
};
if let Some(ref decode) = self.decode {
Expand Down

0 comments on commit 53bebec

Please sign in to comment.