Skip to content

Commit

Permalink
Decompress Form XObject
Browse files Browse the repository at this point in the history
  • Loading branch information
J-F-Liu committed Sep 14, 2018
1 parent af6863f commit 8423ef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lopdf"
version = "0.15.2"
version = "0.15.3"
authors = ["Junfeng Liu <china.liujunfeng@gmail.com>"]
homepage = "https://github.com/J-F-Liu/lopdf"
documentation = "https://docs.rs/crate/lopdf/"
Expand All @@ -10,7 +10,7 @@ readme = "README.md"
description = "A Rust library for PDF document manipulation."

[dependencies]
pom = "1.0.1"
pom = "1.1.0"
chrono = "0.3.0"
flate2 = "0.2.14"
linked-hash-map = "0.3.0"
Expand Down
2 changes: 1 addition & 1 deletion src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ impl Stream {
if let Some(filter) = self.filter() {
match filter.as_str() {
"FlateDecode" => {
if self.dict.get("Subtype").is_some() {
if self.dict.get("Subtype").and_then(|v| v.as_name_str()) == Some("Image") {
return None;
}
let mut data = Vec::new();
Expand Down

0 comments on commit 8423ef3

Please sign in to comment.