Write native PDF catalogs and open actions

This commit is contained in:
gloamxun committed 2026-11-19 08:54:04 +08:00
1 parent a53d9c9bf9
commit f4b003bd27
20 files changed
+811 -40

No files matched your search

@@ -334,7 +334,7 @@ fn old_schema_and_missing_unicode_state_are_rejected_even_with_valid_checksums()
let envelope: serde_json::Value = serde_json::from_slice(&encoded).unwrap();
let original: serde_json::Value =
serde_json::from_str(envelope["payload"].as_str().unwrap()).unwrap();
assert_eq!(original["schema"], 22);
assert_eq!(original["schema"], 23);
for (schema, expected) in [
(1, "incompatible native format"),
(2, "incompatible native format"),
@@ -357,7 +357,8 @@ fn old_schema_and_missing_unicode_state_are_rejected_even_with_valid_checksums()
(19, "incompatible native format"),
(20, "incompatible native format"),
(21, "incompatible native format"),
(22, "glyph_unicode"),
(22, "incompatible native format"),
(23, "glyph_unicode"),
] {
let mut payload = original.clone();
payload["schema"] = schema.into();