Skip to content

Commit

Permalink
Revert "Update to lopdf 0.35"
Browse files Browse the repository at this point in the history
This reverts commit ae9caeb.
  • Loading branch information
jrmuizel committed Feb 9, 2025
1 parent ae9caeb commit 93c7715
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ debug = true
adobe-cmap-parser = "0.4.1"
encoding_rs = "0.8.34"
euclid = "0.20.5"
lopdf = {version = "0.35", default-features = false, features = ["nom_parser"]}
lopdf = {version = "0.34", default-features = false, features = ["nom_parser"]}
postscript = "0.14"
type1-encoding-parser = "0.1.0"
unicode-normalization = "0.1.19"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ struct TextState<'a>

// XXX: We'd ideally implement this without having to copy the uncompressed data
fn get_contents(contents: &Stream) -> Vec<u8> {
if contents.filters().is_ok() {
if contents.filter().is_ok() {
contents.decompressed_content().unwrap_or_else(|_|contents.content.clone())
} else {
contents.content.clone()
Expand Down

0 comments on commit 93c7715

Please sign in to comment.