Expose shared InDesign signature

This commit is contained in:
Dylan M. Taylor committed 2026-11-13 01:31:26 -05:00
1 parent 96c8487984
commit 47bf5650b0
1 file changed
+2 -1
+2 -1
View File
@@ -3,11 +3,12 @@
//! InDesign's binary document model is converted to IDML here. Applications can import the
//! resulting package through [`craft_idml`] while retaining only their own model and UI mapping.
pub use indd::header::SIGNATURE;
pub use indd::{Conversion, Error, Preview, Warning};
/// Whether `bytes` begins with the fixed signature of an InDesign document.
pub fn is_indd(bytes: &[u8]) -> bool {
bytes.starts_with(&indd::header::SIGNATURE)
bytes.starts_with(&SIGNATURE)
}
/// Convert an InDesign document to IDML. `name` is the file name stored in the package.