From c8dfb7b9ec56daf95a11b3db8ed273417b4531ff Mon Sep 17 00:00:00 2001 From: Tobias Schmitz Date: Thu, 8 May 2025 15:36:31 +0200 Subject: [PATCH] fix: compress pdf embeds when the type is unknown --- crates/typst-pdf/src/embed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-pdf/src/embed.rs b/crates/typst-pdf/src/embed.rs index b8d9e16b7..4130bc73f 100644 --- a/crates/typst-pdf/src/embed.rs +++ b/crates/typst-pdf/src/embed.rs @@ -56,7 +56,7 @@ pub(crate) fn embed_files( fn should_compress(data: &[u8]) -> bool { let Some(ty) = infer::get(data) else { - return false; + return true; }; match ty.matcher_type() { infer::MatcherType::App => true,