diff --git a/src/adapters/pdfpages.rs b/src/adapters/pdfpages.rs index 286c16d..f3ec0e9 100644 --- a/src/adapters/pdfpages.rs +++ b/src/adapters/pdfpages.rs @@ -20,7 +20,9 @@ lazy_static! { .iter() .map(|s| FastMatcher::FileExtension(s.to_string())) .collect(), - slow_matchers: None + slow_matchers: Some(vec![SlowMatcher::MimeType( + "application/pdf".to_owned() + )]) }; } #[derive(Default)] diff --git a/src/adapters/poppler.rs b/src/adapters/poppler.rs index c73a7ee..6be887c 100644 --- a/src/adapters/poppler.rs +++ b/src/adapters/poppler.rs @@ -17,7 +17,9 @@ lazy_static! { .iter() .map(|s| FastMatcher::FileExtension(s.to_string())) .collect(), - slow_matchers: None + slow_matchers: Some(vec![SlowMatcher::MimeType( + "application/pdf".to_owned() + )]) }; } #[derive(Default)]