VectorCraft: An open-source, vector art tool written by scratch in pure Rust
PDF.R1: reconcile shared reader with current writer
skylar taylor-barrick2ecba1fb9cb8
diff --cc ASSETS.mdindex 6e8192dbb,1003a0e02..d4804d903--- a/ASSETS.md+++ b/ASSETS.md@@@ -333,27 -333,3 +333,27 @@@ Generated-in-code art is original and h| `examples/ribbons.vectorcraft` | VectorCraft contributors | Original artwork built through the VectorCraft command API | MIT OR Apache-2.0 | || `examples/feature-sheet.vectorcraft` | VectorCraft contributors | Original artwork built through the VectorCraft command API | MIT OR Apache-2.0 | || `examples/perspective-city.vectorcraft` | VectorCraft contributors | Original artwork built through the VectorCraft command API | MIT OR Apache-2.0 | |++## Assets embedded by the PDF backend++The shared PDF backend keeps the existing standard-font and CMap features. These files remain in dependency sources; no font files are copied into this repository. Hashes identify the pinned dependency contents.++| Crate / file | Author | Source | Licence | SHA-256 | Use |+| --- | --- | --- | --- | --- | --- |- | `hayro-interpret 0.7.0 / assets/FoxitDingbats.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/FoxitDingbats.pfb | BSD-3-Clause | `845c752392b6c914fb989c75a08b7792b88f542d2499042ef2889f8c814a16ed` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |- | `hayro-interpret 0.7.0 / assets/FoxitFixed.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/FoxitFixed.pfb | BSD-3-Clause | `b6c8fe53f134b8b6d4578cd2d544df4cee9624c4efa8d51a560fb40ea296101b` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |- | `hayro-interpret 0.7.0 / assets/FoxitFixedBold.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/FoxitFixedBold.pfb | BSD-3-Clause | `f1b7159702973f54fc86254ea38bcf3712b2a736eb3a0995751e9f4bb45ad603` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |- | `hayro-interpret 0.7.0 / assets/FoxitFixedBoldItalic.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/FoxitFixedBoldItalic.pfb | BSD-3-Clause | `8a000945843bd31add06aee63bf9fd41b7578b4f3242a4b7cd46349ad9d24d4d` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |- | `hayro-interpret 0.7.0 / assets/FoxitFixedItalic.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/FoxitFixedItalic.pfb | BSD-3-Clause | `5007faf8320fa1fcc08b8894b356ad976f60b992ba29ee5272578bbdebaf3876` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |- | `hayro-interpret 0.7.0 / assets/FoxitSans.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/FoxitSans.pfb | BSD-3-Clause | `a02339e95d20db14cbdfc1c6baf359cd36a091d5434925c3a4040f60e1a1af9e` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |- | `hayro-interpret 0.7.0 / assets/FoxitSansBold.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/FoxitSansBold.pfb | BSD-3-Clause | `7bdfa36de1d5757dcfaf8b8a4be95c6e41c40fa70dbed9d78bf979a7b9959054` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |- | `hayro-interpret 0.7.0 / assets/FoxitSansBoldItalic.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/FoxitSansBoldItalic.pfb | BSD-3-Clause | `555ce45924338e2e4b32821910221ce85da691fd59a9723c4c971a7c5627fc8b` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |- | `hayro-interpret 0.7.0 / assets/FoxitSansItalic.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/FoxitSansItalic.pfb | BSD-3-Clause | `7751cbefeda351708dae8c4a88db043411bc39ab2ae2097685da845d4d16f307` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |- | `hayro-interpret 0.7.0 / assets/FoxitSerif.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/FoxitSerif.pfb | BSD-3-Clause | `4f57d2b9d884af8f907bf22df6019b52d86cbf6214fdbd02b1ae05472a543f35` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |- | `hayro-interpret 0.7.0 / assets/FoxitSerifBold.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/FoxitSerifBold.pfb | BSD-3-Clause | `0bdf4b04e964139818d51eda03d566ba999fc3ba2421b1c6c51f9dc969022e80` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |- | `hayro-interpret 0.7.0 / assets/FoxitSerifBoldItalic.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/FoxitSerifBoldItalic.pfb | BSD-3-Clause | `a406cac82583bf98175cb62c87ed5e95c45fbb34eece63a10b0a13e793cb2e10` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |- | `hayro-interpret 0.7.0 / assets/FoxitSerifItalic.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/FoxitSerifItalic.pfb | BSD-3-Clause | `610ae0687198045c4db5d1a6650fd5e92536631706382eb8b72e38df578d0ae9` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |- | `hayro-interpret 0.7.0 / assets/FoxitSymbol.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/FoxitSymbol.pfb | BSD-3-Clause | `47967d055530e7357088a08403115425643ec2cdfd6201ba8af0fbd7116c1539` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |- | `hayro-interpret 0.7.0 / assets/CGATS001Compat-v2-micro.icc` | Clinton Ingram (saucecontrol/Compact-ICC-Profiles) | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/assets/CGATS001Compat-v2-micro.icc | CC0-1.0 | `73e1ba37d2bad5bab2a964f40a9eed96209666efc067c3322626214bbef234a0` | Default CMYK colour conversion (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/FoxitDingbats.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/FoxitDingbats.pfb | BSD-3-Clause | `845c752392b6c914fb989c75a08b7792b88f542d2499042ef2889f8c814a16ed` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/FoxitFixed.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/FoxitFixed.pfb | BSD-3-Clause | `b6c8fe53f134b8b6d4578cd2d544df4cee9624c4efa8d51a560fb40ea296101b` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/FoxitFixedBold.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/FoxitFixedBold.pfb | BSD-3-Clause | `f1b7159702973f54fc86254ea38bcf3712b2a736eb3a0995751e9f4bb45ad603` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/FoxitFixedBoldItalic.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/FoxitFixedBoldItalic.pfb | BSD-3-Clause | `8a000945843bd31add06aee63bf9fd41b7578b4f3242a4b7cd46349ad9d24d4d` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/FoxitFixedItalic.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/FoxitFixedItalic.pfb | BSD-3-Clause | `5007faf8320fa1fcc08b8894b356ad976f60b992ba29ee5272578bbdebaf3876` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/FoxitSans.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/FoxitSans.pfb | BSD-3-Clause | `a02339e95d20db14cbdfc1c6baf359cd36a091d5434925c3a4040f60e1a1af9e` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/FoxitSansBold.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/FoxitSansBold.pfb | BSD-3-Clause | `7bdfa36de1d5757dcfaf8b8a4be95c6e41c40fa70dbed9d78bf979a7b9959054` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/FoxitSansBoldItalic.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/FoxitSansBoldItalic.pfb | BSD-3-Clause | `555ce45924338e2e4b32821910221ce85da691fd59a9723c4c971a7c5627fc8b` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/FoxitSansItalic.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/FoxitSansItalic.pfb | BSD-3-Clause | `7751cbefeda351708dae8c4a88db043411bc39ab2ae2097685da845d4d16f307` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/FoxitSerif.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/FoxitSerif.pfb | BSD-3-Clause | `4f57d2b9d884af8f907bf22df6019b52d86cbf6214fdbd02b1ae05472a543f35` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/FoxitSerifBold.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/FoxitSerifBold.pfb | BSD-3-Clause | `0bdf4b04e964139818d51eda03d566ba999fc3ba2421b1c6c51f9dc969022e80` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/FoxitSerifBoldItalic.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/FoxitSerifBoldItalic.pfb | BSD-3-Clause | `a406cac82583bf98175cb62c87ed5e95c45fbb34eece63a10b0a13e793cb2e10` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/FoxitSerifItalic.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/FoxitSerifItalic.pfb | BSD-3-Clause | `610ae0687198045c4db5d1a6650fd5e92536631706382eb8b72e38df578d0ae9` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/FoxitSymbol.pfb` | Foxit Software Inc. / PDFium Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/FoxitSymbol.pfb | BSD-3-Clause | `47967d055530e7357088a08403115425643ec2cdfd6201ba8af0fbd7116c1539` | Renders non-embedded standard-14 fonts (pinned hayro-interpret) |++| `hayro-interpret 0.7.0 / assets/CGATS001Compat-v2-micro.icc` | Clinton Ingram (saucecontrol/Compact-ICC-Profiles) | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/assets/CGATS001Compat-v2-micro.icc | CC0-1.0 | `73e1ba37d2bad5bab2a964f40a9eed96209666efc067c3322626214bbef234a0` | Default CMYK colour conversion (pinned hayro-interpret) |+| `hayro-cmap 0.1.0 / assets/cmaps.brotli` | Adobe | https://crates.io/crates/hayro-cmap/0.1.0 | BSD-3-Clause | `ddf37af521d904d5646c2fc37b2b7e912dc1b56f0d210190b61f598154758e46` | Character-code mapping tables required to read CJK PDFs. Non-visual dependency data; existing embedding unchanged |- | `hayro-interpret 0.7.0 / src/font/generated/metrics.rs` | Adobe (Core 14 AFM metrics, PDF specification encodings); tables by The Hayro Authors | https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/hayro-interpret/src/font/generated/metrics.rs | MIT OR Apache-2.0 | `2ec9e608573eda459de1e1d9bda3bb494315e36bee885acc88912a11fe0caa41` | Glyph widths and encodings for non-embedded standard fonts. Non-visual dependency data; existing embedding unchanged |++| `hayro-interpret 0.7.0 / src/font/generated/metrics.rs` | Adobe (Core 14 AFM metrics, PDF specification encodings); tables by The Hayro Authors | https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/hayro-interpret/src/font/generated/metrics.rs | MIT OR Apache-2.0 | `2ec9e608573eda459de1e1d9bda3bb494315e36bee885acc88912a11fe0caa41` | Glyph widths and encodings for non-embedded standard fonts. Non-visual dependency data; existing embedding unchanged |diff --cc Cargo.lockindex 3a4435828,83e8b2f6e..8ec25676f--- a/Cargo.lock+++ b/Cargo.lock@@@ -809,10 -809,8 +809,10 @@@ dependencies =[[package]]name = "craft-pdf"version = "0.1.0"- source = "git+https://github.com/storytold/craft-libs?rev=89dcbb3060377a26c99a6d80caa16084366704c4#89dcbb3060377a26c99a6d80caa16084366704c4"-source = "git+https://github.com/storytold/craft-libs?rev=f39922b214dc429bcf6551ef71ed3631337b2acf#f39922b214dc429bcf6551ef71ed3631337b2acf"++source = "git+https://github.com/storytold/craft-libs?rev=ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d#ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d"dependencies = [+ "hayro-interpret",+ "hayro-syntax","krilla","thiserror 2.0.21",]@@@ -1787,8 -1791,9 +1787,8 @@@ dependencies =[[package]]name = "hayro-interpret"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ac9df074ff163a63864cec9b0bf640ccbff8abf4e44481df7369ce0ac172ffbe"+version = "0.7.0"- source = "git+https://github.com/storytold/craft-libs?rev=89dcbb3060377a26c99a6d80caa16084366704c4#89dcbb3060377a26c99a6d80caa16084366704c4"++source = "git+https://github.com/storytold/craft-libs?rev=ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d#ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d"dependencies = ["bitflags 2.13.2","hayro-cmap",@@@ -1805,10 -1810,11 +1805,10 @@@[[package]]name = "hayro-jbig2"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "000e025850f4592ddcaee85640db70704151f2bafd43b6f431aa5b6a2c6a35a9"+version = "0.3.0"- source = "git+https://github.com/storytold/craft-libs?rev=89dcbb3060377a26c99a6d80caa16084366704c4#89dcbb3060377a26c99a6d80caa16084366704c4"++source = "git+https://github.com/storytold/craft-libs?rev=ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d#ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d"dependencies = [- "fearless_simd 1.1.0",+ "fearless_simd","hayro-ccitt",]@@@ -1829,8 -1835,9 +1829,8 @@@ checksum = "885c5ef0654933139a9b9546fc2[[package]]name = "hayro-syntax"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6cdc818d8d265dcb42081d488f7599df4f73fb79e9d347ecedcd3c23809d2026"+version = "0.7.2"- source = "git+https://github.com/storytold/craft-libs?rev=89dcbb3060377a26c99a6d80caa16084366704c4#89dcbb3060377a26c99a6d80caa16084366704c4"++source = "git+https://github.com/storytold/craft-libs?rev=ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d#ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d"dependencies = ["flate2","hayro-ccitt",@@@ -2230,7 -2236,7 +2230,7 @@@ dependencies =[[package]]name = "krilla"version = "0.8.2"- source = "git+https://github.com/storytold/craft-libs?rev=89dcbb3060377a26c99a6d80caa16084366704c4#89dcbb3060377a26c99a6d80caa16084366704c4"-source = "git+https://github.com/storytold/craft-libs?rev=f39922b214dc429bcf6551ef71ed3631337b2acf#f39922b214dc429bcf6551ef71ed3631337b2acf"++source = "git+https://github.com/storytold/craft-libs?rev=ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d#ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d"dependencies = ["base64 0.22.1","bumpalo",@@@ -4792,8 -4788,11 +4792,9 @@@ dependencies ="aes","craft-pdf","flate2",- "hayro-interpret",- "hayro-syntax","image","jpeg-encoder",+ "krilla","kurbo 0.13.1","log","md-5",diff --cc Cargo.tomlindex 31d1fe684,ce379b42e..38a86da96--- a/Cargo.toml+++ b/Cargo.toml@@@ -11,7 -11,7 +11,7 @@@ rust-version = "1.95repository = "https://github.com/storytold/vectorcraft"[workspace.dependencies]- craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "89dcbb3060377a26c99a6d80caa16084366704c4", default-features = false, features = ["interpret", "write"] }-craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "f39922b214dc429bcf6551ef71ed3631337b2acf", default-features = false, features = ["write"] }++craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d", default-features = false, features = ["interpret", "write"] }craft-print = { git = "https://github.com/storytold/craft-libs", rev = "d991bf6792f8ade99c51358bf3c1d902c8cd96b5" }craft-ui = { git = "https://github.com/storytold/craft-libs", rev = "5c874d51eeb3de70e735c8ce87a59a7dedd47675", features = ["serde"] }# internal@@@ -111,7 -114,4 +114,7 @@@ lto = "thincodegen-units = 1[patch.crates-io]- hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "89dcbb3060377a26c99a6d80caa16084366704c4" }- hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "89dcbb3060377a26c99a6d80caa16084366704c4" }- hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "89dcbb3060377a26c99a6d80caa16084366704c4" }- krilla = { git = "https://github.com/storytold/craft-libs", rev = "89dcbb3060377a26c99a6d80caa16084366704c4" }-krilla = { git = "https://github.com/storytold/craft-libs", rev = "f39922b214dc429bcf6551ef71ed3631337b2acf" }++hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d" }++hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d" }++hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d" }++krilla = { git = "https://github.com/storytold/craft-libs", rev = "ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d" }diff --cc NOTICEindex 0043f3ea6,73e64928f..bcd3055b9--- a/NOTICE+++ b/NOTICE@@@ -72,23 -72,3 +72,23 @@@ DATA, OR PROFITS; OR BUSINESS INTERRUPTTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.++Shared PDF backend++The patched hayro-interpret 0.7.0, hayro-syntax 0.7.2 and hayro-jbig2 0.3.0+are fetched from https://github.com/storytold/craft-libs at revision- 89dcbb3060377a26c99a6d80caa16084366704c4. Their upstream project is++ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d. Their upstream project is+https://github.com/LaurenzV/hayro, licensed MIT OR Apache-2.0. The snapshot retains each+crate's upstream licence files. The patch ledger is at- https://github.com/storytold/craft-libs/blob/89dcbb3060377a26c99a6d80caa16084366704c4/vendor/README.craft-reader.md.++https://github.com/storytold/craft-libs/blob/ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d/vendor/README.craft-reader.md.++Assets already bundled through Hayro's default features retain their licences:+- Foxit standard-14 substitutes: Copyright 2014 PDFium Authors. All rights reserved.+ Original code copyright 2014 Foxit Software Inc. BSD-3-Clause; see+ licenses/pdf-backend/hayro-interpret/assets/LICENSE_FOXIT.+- CGATS001Compat-v2-micro.icc: CC0-1.0, Clinton Ingram; see+ licenses/pdf-backend/hayro-interpret/assets/CGATS_LICENSE.txt.+- Predefined CMaps: Copyright 1990-2023 Adobe. All rights reserved. BSD-3-Clause,+ non-visual character-mapping data; see licenses/pdf-backend/hayro-cmap/LICENSE.txt.+ Adobe and contributor names do not endorse or promote this product.+Per-file hashes and sources are recorded in ASSETS.md.diff --cc ROADMAP.mdindex eee24a67e,d779cc297..5ca019000--- a/ROADMAP.md+++ b/ROADMAP.md@@@ -9,7 -8,7 +9,7 @@@**Stage: alpha** · next: beta, ~13 points (ready for real work ~62% → ~75%, and reliable `.ai` exchange) and ~170–270 h away- > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** minor (PDF.R1: shared PDF reader with windowed content scanning and explicit incomplete-content errors; scores and estimates unchanged; PDF.W1: guarded shared PDF writer; output behavior, scores and estimates unchanged; Image Trace: Shapes, stroke caps, enhanced presets, gradients over noise, #1845 to #1848, headline numbers unchanged; verified PngSuite downloads, #1729; synthetic control-input budgets, #1709; merges of 2026-10-14: anchor Align and Distribute, #1636; Direct Selection fixes, #1674, #1666, #1743; Escape while typing, #1686; Pen clicks and a Precise Cursors command, #1663; Expand on repeats, #1756; Roughen and Scribble, #1643, #1648; file and input hardening, #1776–#1783, #1786, #1807; MCP limits and envelope, #1727, #1728; Image Trace levelling and Flat Logo on scans, #1647, #1657; a guide's position in the Transform panel is a convenience, not a parity claim, #1659; headline numbers unchanged; later merges of 2026-10-13: SVG import of CSS transforms, percentage lengths in symbols, Inkscape flowed text and pages, #1565, #1596, #1568, #1601; Warp Arc, #1578; Pathfinder Trim, Merge and Crop strokes, #1570; saves to folders that refuse the temporary file, #1620 in part; OpenType stylistic sets, #1607; intersect Smart Guides, #1602 in part; headline numbers unchanged; control transport deadlines, #1726; Image Trace edges, strokes, memory and three new options, measured in `docs/image-trace-quality.md`, headline numbers unchanged; community PRs and fixes of 2026-10-13: Polish interface, #1498; compact native saves, #1492; PDF and EPS paste as vector art, #1499; `.ai`, PDF, EPS and SVG import fixes, #1528, #1530, #1531, #1544, #1551, #1553; guide objects, #1534; Join after Average, #1533; Keyboard Shortcuts lists commands outside the menus, #1539; headline numbers unchanged; community PRs and fixes of late 2026-10-12: type that does not fit its frame is reported, #1471; Tabs panel drags, #1458; template layers in Outline view, #1486; dialog slider rails, #1483; Direct Selection anchor precedence, #1508; print-size images, #1517; French catalog complete again, #1511; headline numbers unchanged; Image Trace colour and photo presets, measured in `docs/image-trace-quality.md`, headline numbers unchanged; community PRs and fixes of 2026-10-12: Split Into Grid options, #1462; Transform Objects and Reflect across an angle, #1448 and #1460; Pathfinder on a group, #1450; unknown parameter keys refused, #1442; grayscale TIFFs with alpha, #1466 in part; many-object edits, #1429 in part; headline numbers unchanged; Image Trace places edges to a fraction of a pixel, measured in `docs/image-trace-quality.md`, headline numbers unchanged; Transform dialogs preview and the transform tools act on direct-selected anchors, #1412 and #1408; `.ai` compound path paint, #1410, overprint, #1388, and text-only PDF parts, #1387; community PRs: strokes wider than their shape, corner drags without the bounding box, pasted pictures, compound paths in `document.inspect`, MCP guide; headline numbers unchanged; community PRs: `.ai` editing-data follow-ups (gradient stops, type of objects with an appearance, short area-type frames), PDF bleed with editing data, dialog keyboard focus, art flush with an artboard, font rescan, symbol instance redraw, `--control` port check; headline numbers unchanged; Rectangular Grid and Polar Grid tool options, #1377 in part; `.ai` files with placed (linked) pictures open from their editing data, #1264; community PRs: `.ai` and PDF bleed and editing-data import, gradient shapes imported as paths, ruler origin, Align To, Live Corners corner selection; headline numbers unchanged; G2: Film Grain added; Photoshop effects 29/57; 28 filters remain; community PRs: graph designs, Graph Data worksheet and Graph Type options; Align both centres; Pen endpoint fixes; earlier: Effect › Brush Strokes landed: Photoshop-style filters 28 of 57, raster effects 40% → 48%; `.ai` gradients, meshes and artboard names from the editing data; headline numbers unchanged; `.ai` art styles and clipping fills from the editing data; headline numbers unchanged; `editingData: "always"`; headline numbers unchanged) · **Target:** Adobe Illustrator 2026 (30.x)-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** minor (PDF.W1: guarded shared PDF writer; output behavior, scores and estimates unchanged; later 2026-10-14 merges: per-corner radius, #1682; Width Point Edit from the Width tool, #1814, #1630; guides, #1782, #1836; anchor X/Y/W/H, #1824; Snap to Grid over Snap to Pixel, #1816; toolbar and All Tools, #1751; Actions panel selection, #1629 in part; macOS save sheets, #1855, the Format menu withdrawn; rendering caches, #1667–#1792; untrusted files, #1852, #1862–#1873; failed-save dialog, #1685; Dim Images, #1683; headline numbers unchanged; Image Trace: Shapes, stroke caps, enhanced presets, gradients over noise, #1845 to #1848, headline numbers unchanged; verified PngSuite downloads, #1729; synthetic control-input budgets, #1709; merges of 2026-10-14: anchor Align and Distribute, #1636; Direct Selection fixes, #1674, #1666, #1743; Escape while typing, #1686; Pen clicks and a Precise Cursors command, #1663; Expand on repeats, #1756; Roughen and Scribble, #1643, #1648; file and input hardening, #1776–#1783, #1786, #1807; MCP limits and envelope, #1727, #1728; Image Trace levelling and Flat Logo on scans, #1647, #1657; a guide's position in the Transform panel is a convenience, not a parity claim, #1659; headline numbers unchanged; later merges of 2026-10-13: SVG import of CSS transforms, percentage lengths in symbols, Inkscape flowed text and pages, #1565, #1596, #1568, #1601; Warp Arc, #1578; Pathfinder Trim, Merge and Crop strokes, #1570; saves to folders that refuse the temporary file, #1620 in part; OpenType stylistic sets, #1607; intersect Smart Guides, #1602 in part; headline numbers unchanged; control transport deadlines, #1726; Image Trace edges, strokes, memory and three new options, measured in `docs/image-trace-quality.md`, headline numbers unchanged; community PRs and fixes of 2026-10-13: Polish interface, #1498; compact native saves, #1492; PDF and EPS paste as vector art, #1499; `.ai`, PDF, EPS and SVG import fixes, #1528, #1530, #1531, #1544, #1551, #1553; guide objects, #1534; Join after Average, #1533; Keyboard Shortcuts lists commands outside the menus, #1539; headline numbers unchanged; community PRs and fixes of late 2026-10-12: type that does not fit its frame is reported, #1471; Tabs panel drags, #1458; template layers in Outline view, #1486; dialog slider rails, #1483; Direct Selection anchor precedence, #1508; print-size images, #1517; French catalog complete again, #1511; headline numbers unchanged; Image Trace colour and photo presets, measured in `docs/image-trace-quality.md`, headline numbers unchanged; community PRs and fixes of 2026-10-12: Split Into Grid options, #1462; Transform Objects and Reflect across an angle, #1448 and #1460; Pathfinder on a group, #1450; unknown parameter keys refused, #1442; grayscale TIFFs with alpha, #1466 in part; many-object edits, #1429 in part; headline numbers unchanged; Image Trace places edges to a fraction of a pixel, measured in `docs/image-trace-quality.md`, headline numbers unchanged; Transform dialogs preview and the transform tools act on direct-selected anchors, #1412 and #1408; `.ai` compound path paint, #1410, overprint, #1388, and text-only PDF parts, #1387; community PRs: strokes wider than their shape, corner drags without the bounding box, pasted pictures, compound paths in `document.inspect`, MCP guide; headline numbers unchanged; community PRs: `.ai` editing-data follow-ups (gradient stops, type of objects with an appearance, short area-type frames), PDF bleed with editing data, dialog keyboard focus, art flush with an artboard, font rescan, symbol instance redraw, `--control` port check; headline numbers unchanged; Rectangular Grid and Polar Grid tool options, #1377 in part; `.ai` files with placed (linked) pictures open from their editing data, #1264; community PRs: `.ai` and PDF bleed and editing-data import, gradient shapes imported as paths, ruler origin, Align To, Live Corners corner selection; headline numbers unchanged; G2: Film Grain added; Photoshop effects 29/57; 28 filters remain; community PRs: graph designs, Graph Data worksheet and Graph Type options; Align both centres; Pen endpoint fixes; earlier: Effect › Brush Strokes landed: Photoshop-style filters 28 of 57, raster effects 40% → 48%; `.ai` gradients, meshes and artboard names from the editing data; headline numbers unchanged; `.ai` art styles and clipping fills from the editing data; headline numbers unchanged; `editingData: "always"`; headline numbers unchanged) · **Target:** Adobe Illustrator 2026 (30.x)++> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** minor (PDF.R1: shared PDF reader with windowed content scanning and explicit incomplete-content errors; scores and estimates unchanged; PDF.W1: guarded shared PDF writer; output behavior, scores and estimates unchanged; later 2026-10-14 merges: per-corner radius, #1682; Width Point Edit from the Width tool, #1814, #1630; guides, #1782, #1836; anchor X/Y/W/H, #1824; Snap to Grid over Snap to Pixel, #1816; toolbar and All Tools, #1751; Actions panel selection, #1629 in part; macOS save sheets, #1855, the Format menu withdrawn; rendering caches, #1667–#1792; untrusted files, #1852, #1862–#1873; failed-save dialog, #1685; Dim Images, #1683; headline numbers unchanged; Image Trace: Shapes, stroke caps, enhanced presets, gradients over noise, #1845 to #1848, headline numbers unchanged; verified PngSuite downloads, #1729; synthetic control-input budgets, #1709; merges of 2026-10-14: anchor Align and Distribute, #1636; Direct Selection fixes, #1674, #1666, #1743; Escape while typing, #1686; Pen clicks and a Precise Cursors command, #1663; Expand on repeats, #1756; Roughen and Scribble, #1643, #1648; file and input hardening, #1776–#1783, #1786, #1807; MCP limits and envelope, #1727, #1728; Image Trace levelling and Flat Logo on scans, #1647, #1657; a guide's position in the Transform panel is a convenience, not a parity claim, #1659; headline numbers unchanged; later merges of 2026-10-13: SVG import of CSS transforms, percentage lengths in symbols, Inkscape flowed text and pages, #1565, #1596, #1568, #1601; Warp Arc, #1578; Pathfinder Trim, Merge and Crop strokes, #1570; saves to folders that refuse the temporary file, #1620 in part; OpenType stylistic sets, #1607; intersect Smart Guides, #1602 in part; headline numbers unchanged; control transport deadlines, #1726; Image Trace edges, strokes, memory and three new options, measured in `docs/image-trace-quality.md`, headline numbers unchanged; community PRs and fixes of 2026-10-13: Polish interface, #1498; compact native saves, #1492; PDF and EPS paste as vector art, #1499; `.ai`, PDF, EPS and SVG import fixes, #1528, #1530, #1531, #1544, #1551, #1553; guide objects, #1534; Join after Average, #1533; Keyboard Shortcuts lists commands outside the menus, #1539; headline numbers unchanged; community PRs and fixes of late 2026-10-12: type that does not fit its frame is reported, #1471; Tabs panel drags, #1458; template layers in Outline view, #1486; dialog slider rails, #1483; Direct Selection anchor precedence, #1508; print-size images, #1517; French catalog complete again, #1511; headline numbers unchanged; Image Trace colour and photo presets, measured in `docs/image-trace-quality.md`, headline numbers unchanged; community PRs and fixes of 2026-10-12: Split Into Grid options, #1462; Transform Objects and Reflect across an angle, #1448 and #1460; Pathfinder on a group, #1450; unknown parameter keys refused, #1442; grayscale TIFFs with alpha, #1466 in part; many-object edits, #1429 in part; headline numbers unchanged; Image Trace places edges to a fraction of a pixel, measured in `docs/image-trace-quality.md`, headline numbers unchanged; Transform dialogs preview and the transform tools act on direct-selected anchors, #1412 and #1408; `.ai` compound path paint, #1410, overprint, #1388, and text-only PDF parts, #1387; community PRs: strokes wider than their shape, corner drags without the bounding box, pasted pictures, compound paths in `document.inspect`, MCP guide; headline numbers unchanged; community PRs: `.ai` editing-data follow-ups (gradient stops, type of objects with an appearance, short area-type frames), PDF bleed with editing data, dialog keyboard focus, art flush with an artboard, font rescan, symbol instance redraw, `--control` port check; headline numbers unchanged; Rectangular Grid and Polar Grid tool options, #1377 in part; `.ai` files with placed (linked) pictures open from their editing data, #1264; community PRs: `.ai` and PDF bleed and editing-data import, gradient shapes imported as paths, ruler origin, Align To, Live Corners corner selection; headline numbers unchanged; G2: Film Grain added; Photoshop effects 29/57; 28 filters remain; community PRs: graph designs, Graph Data worksheet and Graph Type options; Align both centres; Pen endpoint fixes; earlier: Effect › Brush Strokes landed: Photoshop-style filters 28 of 57, raster effects 40% → 48%; `.ai` gradients, meshes and artboard names from the editing data; headline numbers unchanged; `.ai` art styles and clipping fills from the editing data; headline numbers unchanged; `editingData: "always"`; headline numbers unchanged) · **Target:** Adobe Illustrator 2026 (30.x)VectorCraft is a clean-room, open-source, pure-Rust reimplementation of the Adobe Illustrator workflow. It runson macOS, Windows, Linux, FreeBSD and the web (WASM), and agents can drive all of it over MCP, the CLI and a JSONdiff --cc crates/pdf/Cargo.tomlindex 68fa4c1c4,ae8360f48..30a2f98ec--- a/crates/pdf/Cargo.toml+++ b/crates/pdf/Cargo.toml@@@ -18,13 -18,16 +18,14 @@@ vectorcraft-text = { workspace = trueskrifa = { workspace = true }kurbo = { workspace = true }thiserror = { workspace = true }--flate2 = { workspace = true }++flate2 = { workspace = true, features = ["zlib-rs"] }image = { workspace = true }# CMYK JPEGs (the image crate writes RGB and grey ones only).jpeg-encoder = { workspace = true }craft-pdf = { workspace = true }-hayro-syntax = "0.8.0"-hayro-interpret = { version = "0.8.0", default-features = false, features = ["embed-fonts", "embed-cmaps"] }log = { workspace = true }smallvec = "1"+ weezl = "0.1"serde = { workspace = true }# PDF security (encrypt.rs): pure Rust, MIT OR Apache-2.0, builds for wasm.aes = "0.8"diff --cc crates/pdf/src/import.rsindex 66ff342f4,cc2bad674..a7db28a42--- a/crates/pdf/src/import.rs+++ b/crates/pdf/src/import.rs@@@ -148,13 -147,15 +148,24 @@@ pub const PAST_PAGE_NOTE: &str = "art r/// Import a PDF, returning the document plus warnings about content that was approximated or skipped.pub fn import_with_report(bytes: &[u8], opts: &ImportOptions) -> Result<ImportReport, PdfError> {- import_with_reader_options(bytes, opts, &crate::pages::open_options())+ // The interpreter draws forms, patterns, glyphs and masks inside one another by recursion, in+ // large stack frames: it caps that (50 deep), and gets room for the cap whatever thread asks.+ vectorcraft_doc::depth::with_deep_stack(|| read(bytes, opts))}+ /// [`import_with_report`] on the thread that asks.+ pub(crate) fn read(bytes: &[u8], opts: &ImportOptions) -> Result<ImportReport, PdfError> {- let original = crate::pages::open(bytes, opts.password.as_deref())?;++ read_with_reader_options(bytes, opts, &crate::pages::open_options())++}++++#[cfg(test)]+pub(crate) fn import_with_reader_options(bytes: &[u8], opts: &ImportOptions, reader: &craft_pdf::OpenOptions) -> Result<ImportReport, PdfError> {++ vectorcraft_doc::depth::with_deep_stack(|| read_with_reader_options(bytes, opts, reader))++}++++fn read_with_reader_options(bytes: &[u8], opts: &ImportOptions, reader: &craft_pdf::OpenOptions) -> Result<ImportReport, PdfError> {+ let original = crate::pages::open_with_options(bytes, opts.password.as_deref(), reader)?;let picked = crate::pages::picked(opts, original.pages().len())?;- picked.iter().filter_map(|&n| original.pages().get(n)).try_for_each(crate::pages::content_too_deep)?;let mut ocgs = Ocgs::read(&original);let route = opts.layers && !ocgs.list.is_empty();// Content that is off imports as hidden layers: an update of the file turns every group ondiff --cc crates/pdf/src/import_scan.rsindex 85e80b9f6,b3a6d2c9f..8aa26cc78--- a/crates/pdf/src/import_scan.rs+++ b/crates/pdf/src/import_scan.rs@@@ -583,20 -480,16 +583,21 @@@ impl Walker<'_, '_>self.hidden_form |= !self.is_visible();}if self.is_visible() {- if let Some(g) = d.get::<Dict<'_>>(b"Group")- && self.out.groups.len() < MAX_GROUPS- {+ if let Some(g) = d.get::<Dict<'_>>(b"Group") {+ if self.out.groups.len() >= MAX_GROUPS {+ self.out.cut = true;+ return;+ }self.out.groups.push((g.get::<bool>(b"I").unwrap_or(false), g.get::<bool>(b"K").unwrap_or(false)));}- let inner = Resources::from_parent(d.get::<Dict<'_>>(b"Resources").unwrap_or_default(), res.clone());+ // (Its own resources, or without any those of what draws it: as the interpreter reads them.)- let inner = d.get::<Dict<'_>>(b"Resources").map(Resources::new).unwrap_or_else(|| res.clone());++ let inner = Resources::from_scope(d.get::<Dict<'_>>(b"Resources"), res.clone());self.save();- self.walk(TypedIter::new(data.as_ref()), &inner, depth + 1);+ self.walk(data.as_ref(), &inner, depth + 1);self.restore();+ if self.out.cut {+ return;+ }}if oc.is_some() {self.visible.pop();diff --cc crates/pdf/src/lib.rsindex f3d20736e,5e06a9c91..5ba4b9398--- a/crates/pdf/src/lib.rs+++ b/crates/pdf/src/lib.rs@@@ -289,6 -290,3 +290,9 @@@ mod tests_strokeoutmod tests_textstroke;#[cfg(test)]mod tests_webview;++#[cfg(test)]+mod tests_reader_streaming;++++#[cfg(test)]++mod tests_reader_compat;diff --cc crates/pdf/src/pages.rsindex 343845a9a,b56f2cd19..17618280e--- a/crates/pdf/src/pages.rs+++ b/crates/pdf/src/pages.rs@@@ -1,9 -1,12 +1,12 @@@//! The pages of a PDF to import: opening with a password, the pages picked, the box each page//! is cropped to ([`CropTo`]) and [`info`].- use craft_pdf::syntax::object::{Dict, Stream};+ use std::collections::HashMap;+-use hayro_syntax::object::{Array, Dict, MaybeRef, Name, Object, ObjectIdentifier, Stream, dict_or_stream};-use hayro_syntax::page::Page;-use hayro_syntax::xref::XRef;-use hayro_syntax::{DecryptionError, LoadPdfError, Pdf};++use craft_pdf::syntax::object::{Array, Dict, MaybeRef, Name, Object, ObjectIdentifier, Stream, dict_or_stream};+use craft_pdf::syntax::page::Page;++use craft_pdf::syntax::xref::XRef;+use craft_pdf::syntax::{DecryptionError, LoadPdfError, Pdf};use kurbo::{Affine, Rect};use vectorcraft_doc::setup::MAX_BLEED;@@@ -33,89 -37,137 +37,148 @@@ pub fn is_postscript(bytes: &[u8]) -> bbytes.starts_with(b"%!PS") || bytes.starts_with(&[0xC5, 0xD0, 0xD3, 0xC6])}- /// The application's preflight threshold for arrays and dictionaries in raw or decoded PDF- /// content. Preserve this 256-level diagnostic guard independently of the shared parser's- /// 128-level direct-container cap; passing this preflight does not guarantee the reader accepts- /// every shallower object.- const MAX_OBJECT_NESTING: usize = 256;-/// The most functions and colour spaces that may be built on one another (a function stitching-/// functions together, an indexed space on a space with an alternate). The interpreter (hayro)-/// builds them by recursion, without a cap of its own: one built on itself, or thousands in a-/// chain, overflows the stack, which is an abort, not an error. Files have two or three.++/// The application's stricter refusal policy for functions and colour spaces built on one++/// another (a function stitching functions together, an indexed space on an alternate).++/// The shared interpreter also has function depth and node budgets; this preflight rejects++/// cyclic or excessively linked objects before interpretation. Files usually have two or three.+ const MAX_LINKS: usize = 16;+-/// The deepest the procedures of a calculator function may nest: read by recursion, too.++/// The application's calculator-procedure depth policy, layered over the shared reader's limits.+ const MAX_PROCEDURES: usize = 64;- fn too_deep() -> PdfError {- PdfError::Parse(format!("its arrays and dictionaries are nested more than {MAX_OBJECT_NESTING} deep"))+ /// What the function or colour space `o` is built on: the functions a stitching function joins;+ /// the base, alternate and tint of a colour space; the alternate of a colour profile. Nothing for+ /// any other object.+ fn links<'a>(o: &Object<'a>, xref: &'a XRef) -> Vec<MaybeRef<Object<'a>>> {+ const SPACES: [&[u8]; 6] = [b"Indexed", b"I", b"Separation", b"DeviceN", b"Pattern", b"ICCBased"];+ if let Object::Array(a) = o {+ let mut items = a.raw_iter();+ let kind = match items.next() {+ Some(MaybeRef::NotRef(Object::Name(n))) => Some(n),+ Some(MaybeRef::Ref(r)) => xref.get::<Name<'a>>(r.into()),+ _ => None,+ };+ return if kind.is_some_and(|n| SPACES.contains(&n.as_ref())) { items.collect() } else { vec![] };+ }+ let Some((d, _)) = dict_or_stream(o) else { return vec![] };+ let functions = d.get::<Array<'a>>(b"Functions").map(|a| a.raw_iter().collect::<Vec<_>>()).unwrap_or_default();+ functions.into_iter().chain(d.get_raw::<Object<'a>>(b"Alternate")).collect()}- /// Do the arrays and dictionaries in the text of `pdf` nest deeper than [`MAX_OBJECT_NESTING`]?- /// Read as tokens (strings and comments hold none), an object at a time. The data of a stream- /// with a filter is skipped: it isn't PDF text until decoded, which this doesn't do, so nesting- /// inside compressed streams is not seen here.- fn nests_too_deep(pdf: &[u8]) -> bool {- let after =- |from: usize, what: &[u8]| pdf.get(from..).and_then(|rest| rest.windows(what.len()).position(|w| w == what)).map(|at| from + at + what.len());- let word = |at: usize, w: &[u8]| pdf.get(at..).is_some_and(|rest| rest.starts_with(w));- let (mut depth, mut filtered) = (0usize, false);- let mut i = 0;- while let Some(&c) = pdf.get(i) {- i += 1;- match c {- b'%' => i += pdf.get(i..).and_then(|rest| rest.iter().position(|c| matches!(c, b'\n' | b'\r'))).unwrap_or(pdf.len()),- b'(' => {- // A string: parentheses nest in it, a backslash takes the next byte.- let mut open = 1usize;- while open > 0 {- match pdf.get(i) {- None => return false,- Some(b'\\') => i += 1,- Some(b'(') => open += 1,- Some(b')') => open -= 1,- Some(_) => {}- }- i += 1;- }- }- b'[' => depth += 1,- b']' => depth = depth.saturating_sub(1),- b'<' if pdf.get(i) == Some(&b'<') => (depth, i) = (depth + 1, i + 1),- b'>' if pdf.get(i) == Some(&b'>') => (depth, i) = (depth.saturating_sub(1), i + 1),- // A string in hexadecimal.- b'<' => i = after(i, b">").unwrap_or(pdf.len()),- b'/' if word(i - 1, b"/Filter") => filtered = true,- b'e' if word(i - 1, b"endobj") => (depth, filtered) = (0, false),- b'e' if word(i - 1, b"endstream") => i += 8,- b's' if word(i - 1, b"stream") => {- depth = 0;- if std::mem::take(&mut filtered) {- i = after(i, b"endstream").unwrap_or(pdf.len());- }+ /// How many of its kind the function or colour space `o` is built on, one on the next (0 for any+ /// other object); `None` past `room`, or when it is built on itself. `known`: the objects looked+ /// at so far (`None` while one is being looked at, too). One `None` refuses the file, so that an+ /// object is `None` only for the room there was where it was first met doesn't matter.+ fn built_on<'a>(o: MaybeRef<Object<'a>>, xref: &'a XRef, known: &mut HashMap<ObjectIdentifier, Option<usize>>, room: usize) -> Option<usize> {+ let (id, o) = match o {+ MaybeRef::Ref(r) => {+ let id = ObjectIdentifier::from(r);+ if let Some(found) = known.get(&id) {+ return *found;}+ let Some(o) = xref.get::<Object<'a>>(id) else { return Some(0) };+ known.insert(id, None);+ (Some(id), o)+ }+ MaybeRef::NotRef(o) => (None, o),+ };+ let links = links(&o, xref);+ let most = match room.checked_sub(1) {+ _ if links.is_empty() => Some(0),+ Some(room) => links.into_iter().try_fold(0, |most, on| built_on(on, xref, known, room).map(|n| most.max(n + 1))),+ None => None,+ };+ // (What it is built on may be known already, and deeper than there is room for here.)+ let most = most.filter(|n| *n <= room);+ if let Some(id) = id {+ known.insert(id, most);+ }+ most+ }++ /// Is `o` a calculator function whose procedures nest deeper than [`MAX_PROCEDURES`]?+ fn procedures_too_deep(o: &Object<'_>) -> bool {+ let Object::Stream(s) = o else { return false };+ if s.dict().get::<u8>(b"FunctionType") != Some(4) {+ return false;+ }+ let Ok(program) = s.decoded() else { return false };+ let mut depth = 0usize;+ program.iter().any(|c| {+ match c {+ b'{' => depth += 1,+ b'}' => depth = depth.saturating_sub(1),_ => {}}- if depth > MAX_OBJECT_NESTING {+ depth > MAX_PROCEDURES+ })+ }++ /// The error of a file with a stream the reader would fail on ([`crate::streams`]).+ const STREAM_NOTE: &str = "a stream in it would decode to more than 256 MB, or its decode parameters can't be applied";++ /// The error of a file [`nests_without_end`].+ const NESTED_NOTE: &str = "its functions or colour spaces are built on one another without end";++ /// Why `pdf` is refused, if it is: a stream the reader would fail on (its own checks come first:+ /// the calculator functions are decoded below), or [`nests_without_end`].+ fn hostile(pdf: &Pdf) -> Option<&'static str> {+ if pdf.objects().into_iter().any(|o| matches!(&o, Object::Stream(s) if crate::streams::unsafe_stream(s))) {+ return Some(STREAM_NOTE);+ }+ nests_without_end(pdf).then_some(NESTED_NOTE)+ }++ /// Does `pdf` hold functions or colour spaces built on one another past [`MAX_LINKS`] (or on+ /// themselves), or a calculator function nested past [`MAX_PROCEDURES`]? Every object is looked+ /// at, wherever it is used from: the interpreter builds them from resources, shadings, images,+ /// patterns, masks and graphics states alike.+ fn nests_without_end(pdf: &Pdf) -> bool {+ let xref = pdf.xref();+ let mut known = HashMap::new();+ // The objects of the file, then what each holds directly (64 deep at most: the reader's cap).+ let mut pending: Vec<Object<'_>> = pdf.objects().into_iter().collect();+ while let Some(o) = pending.pop() {+ if procedures_too_deep(&o) || built_on(MaybeRef::NotRef(o.clone()), xref, &mut known, MAX_LINKS).is_none() {return true;}+ match &o {+ Object::Array(a) => pending.extend(a.raw_iter().filter_map(direct)),+ _ => pending.extend(dict_or_stream(&o).into_iter().flat_map(|(d, _)| d.entries()).filter_map(|(_, v)| direct(v))),+ }}false}/// Read a PDF, decrypting it with `password` (none: the empty user password). The permissions/// password opens a file too.+ ///-/// What a hostile file nests or loops is the reader's to refuse (hayro 0.8 reads arrays and++/// What a hostile file nests or loops is the shared reader's to refuse (it reads arrays and+ /// dictionaries 64 deep and no deeper, wherever they are: the file's text, an object stream, the+ /// content of a page, form, pattern or glyph; and follows a page tree or a chain of object streams-/// once). What it reads beyond that is left out, as an object it can't read. What the interpreter-/// builds by recursion with no cap, and streams it would decode without a ceiling or with a-/// predictor it can't apply, are refused here ([`hostile`], [`crate::streams`]).++/// once). What it reads beyond that is left out, as an object it can't read. The application also++/// rejects overly linked functions and colour spaces, oversized streams and unsupported++/// predictors before interpretation ([`hostile`], [`crate::streams`]), retaining its stricter++/// refusal policy alongside the shared backend's bounded decoding and construction.pub(crate) fn open(bytes: &[u8], password: Option<&str>) -> Result<Pdf, PdfError> {+ open_with_options(bytes, password, &open_options())+}++/// Preserve the application's existing accepted file sizes. Ordinary stream decoding still+/// uses the shared reader's immutable per-document limits, and its input copy is fallible.+pub(crate) fn open_options() -> craft_pdf::OpenOptions {+ craft_pdf::OpenOptions { max_input_bytes: usize::MAX, ..Default::default() }+}++pub(crate) fn open_with_options(bytes: &[u8], password: Option<&str>, options: &craft_pdf::OpenOptions) -> Result<Pdf, PdfError> {if is_postscript(bytes) {return Err(PdfError::PostScript);}- if nests_too_deep(bytes) {- return Err(too_deep());+ if crate::streams::unsafe_file_streams(bytes) {+ return Err(PdfError::Parse(STREAM_NOTE.into()));}let password = password.unwrap_or_default();- let read = |pw: &str| Pdf::new_with_password(bytes.to_vec(), pw);+ let read = |pw: &str| craft_pdf::open_slice_with_options(bytes, Some(pw), options);read(password).or_else(|e| match e {// The reader takes only the open password of RC4 and 128-bit AES files: the@@@ -126,124 -178,16 +189,18 @@@e => Err(e),}).map_err(|e| match e {- LoadPdfError::Decryption(DecryptionError::PasswordProtected) if password.is_empty() => PdfError::NeedsPassword,- LoadPdfError::Decryption(DecryptionError::PasswordProtected) => PdfError::WrongPassword,- e => PdfError::Parse(format!("{e:?}")),+ craft_pdf::OpenError::Load(LoadPdfError::Decryption(DecryptionError::PasswordProtected)) if password.is_empty() => {+ PdfError::NeedsPassword+ }+ craft_pdf::OpenError::Load(LoadPdfError::Decryption(DecryptionError::PasswordProtected)) => PdfError::WrongPassword,+ e => PdfError::Parse(e.to_string()),})- }-- /// The error of a page whose decoded operands nest too deeply. Read the same content as the- /// scanner and interpreter: bare Flate streams can exceed an ordinary materialization limit.- pub(crate) fn content_too_deep(page: &Page<'_>) -> Result<(), PdfError> {- const WINDOW: usize = 64 << 10;- let mut content = page.content_reader();- let mut window = Vec::new();- window.try_reserve_exact(WINDOW).map_err(|_| crate::import_scan::incomplete_content())?;- let mut nesting = ContentNesting::default();- loop {- window.clear();- if content.read_into(&mut window, WINDOW) == 0 {- break;- }- if nesting.feed(&window) {- return Err(too_deep());- }- }- if content.truncated() {- return Err(crate::import_scan::incomplete_content());- }- Ok(())- }-- #[derive(Clone, Copy, Default)]- enum ContentToken {- #[default]- Normal,- Comment,- Literal {- depth: usize,- escaped: bool,- },- Hex,- Less,- Greater,- }-- /// Only lexical nesting is needed before the recursive operand parser runs. Keep state across- /// content windows and streams, including a dictionary delimiter split between the two bytes.- #[derive(Default)]- struct ContentNesting {- depth: usize,- token: ContentToken,- }-- impl ContentNesting {- fn feed(&mut self, bytes: &[u8]) -> bool {- for &byte in bytes {- match self.token {- ContentToken::Comment => {- if matches!(byte, b'\r' | b'\n') {- self.token = ContentToken::Normal;- }- continue;- }- ContentToken::Literal { mut depth, escaped } => {- if escaped {- self.token = ContentToken::Literal { depth, escaped: false };- } else if byte == b'\\' {- self.token = ContentToken::Literal { depth, escaped: true };- } else {- if byte == b'(' {- depth = depth.saturating_add(1);- } else if byte == b')' {- depth = depth.saturating_sub(1);- }- self.token = if depth == 0 { ContentToken::Normal } else { ContentToken::Literal { depth, escaped: false } };- }- continue;- }- ContentToken::Hex => {- if byte == b'>' {- self.token = ContentToken::Normal;- }- continue;- }- ContentToken::Less => {- self.token = if byte == b'<' || byte == b'>' { ContentToken::Normal } else { ContentToken::Hex };- if byte == b'<' {- self.depth = self.depth.saturating_add(1);- if self.depth > MAX_OBJECT_NESTING {- return true;- }- }- continue;- }- ContentToken::Greater => {- self.token = ContentToken::Normal;- if byte == b'>' {- self.depth = self.depth.saturating_sub(1);- continue;- }- }- ContentToken::Normal => {}- }- match byte {- b'%' => self.token = ContentToken::Comment,- b'(' => self.token = ContentToken::Literal { depth: 1, escaped: false },- b'<' => self.token = ContentToken::Less,- b'>' => self.token = ContentToken::Greater,- b'[' => self.depth = self.depth.saturating_add(1),- b']' => self.depth = self.depth.saturating_sub(1),- _ => {}- }- if self.depth > MAX_OBJECT_NESTING {- return true;- }- }- false- }+ // Twice: looking at every object makes the reader repair a damaged table of objects (once+ // only), and the objects are other ones after that.+ .and_then(|pdf| match (0..2).find_map(|_| hostile(&pdf)) {+ Some(why) => Err(PdfError::Parse(why.into())),+ None => Ok(pdf),+ })}/// The pages and their boxes. An encrypted PDF needs its `password`diff --cc crates/pdf/src/streams.rsindex 000000000,61a6fcb9f..195d7b692mode 000000,100644..100644--- a/crates/pdf/src/streams.rs+++ b/crates/pdf/src/streams.rs@@@ -1,0 -1,367 +1,367 @@@+ //! Streams looked at before the PDF reader (hayro) decodes them. It inflates Flate and LZW data+ //! with no ceiling, so a few megabytes can ask for gigabytes (#1700), and it applies a predictor+ //! before checking its parameters: `Columns 0` divides by zero, a huge `Columns` allocates a row+ //! that large whatever the stream holds (#1701). A file with such a stream is refused instead.++ use std::borrow::Cow;+ use std::io::Read;+-use hayro_syntax::content::TypedIter;-use hayro_syntax::content::ops::TypedInstruction;-use hayro_syntax::object::{Array, Dict, FromBytes, MaybeRef, Name, Object, Stream};++use craft_pdf::syntax::content::TypedIter;++use craft_pdf::syntax::content::ops::TypedInstruction;++use craft_pdf::syntax::object::{Array, Dict, FromBytes, MaybeRef, Name, Object, Stream};++ /// The most a stream may decode to: 256 MB, the pixels of the largest image the app reads (64+ /// million, 4 bytes each).+ pub(crate) const MAX_DECODED: usize = 256 << 20;++ /// The longest row a predictor may have, in bytes.+ const MAX_ROW: usize = 1 << 24;++ /// A stream that decodes to more than [`MAX_DECODED`].+ struct TooBig;++ /// The filters of the stream with dictionary `dict`, by name (`Filter` or `F`: a name or an array).+ fn filters<'a>(dict: &Dict<'a>) -> Vec<Name<'a>> {+ [&b"Filter"[..], b"F"]+ .into_iter()+ .find_map(|key| dict.get::<Name<'a>>(key).map(|n| vec![n]).or_else(|| dict.get::<Array<'a>>(key).map(|a| a.iter::<Name<'a>>().collect())))+ .unwrap_or_default()+ }++ /// Every decode parameter dictionary of the stream with dictionary `dict`, as the reader may take+ /// them (`DecodeParms` or `DP`: a dictionary, or an array with one for each filter).+ fn params<'a>(dict: &Dict<'a>) -> Vec<Dict<'a>> {+ let mut all = vec![];+ for key in [&b"DecodeParms"[..], b"DP"] {+ all.extend(dict.get::<Dict<'a>>(key));+ all.extend(dict.get::<Array<'a>>(key).into_iter().flat_map(|a| a.iter::<Object<'a>>().filter_map(|o| o.into_dict()).collect::<Vec<_>>()));+ }+ all+ }++ /// Would the reader's predictor fail on `params`? It reads `Colors` and `BitsPerComponent` as+ /// bytes and `Columns` as a size, multiplies the first two as bytes, divides by the length of a row+ /// and allocates one before it checks anything.+ fn bad_predictor(params: &Dict<'_>) -> bool {+ if params.get::<u8>(b"Predictor").unwrap_or(1) == 1 {+ return false;+ }+ let colors = usize::from(params.get::<u8>(b"Colors").unwrap_or(1));+ let bits = usize::from(params.get::<u8>(b"BitsPerComponent").unwrap_or(8));+ let columns = params.get::<usize>(b"Columns").unwrap_or(1);+ let pixel = colors * bits;+ let row = columns.checked_mul(pixel).map(|b| b.div_ceil(8));+ !(matches!(bits, 1 | 2 | 4 | 8 | 16) && colors > 0 && pixel <= 255 && columns > 0 && row.is_some_and(|r| r <= MAX_ROW))+ }++ /// `data` inflated, up to one byte past [`MAX_DECODED`] (zlib, or raw deflate as the reader also+ /// takes); `None` when it is damaged before that.+ fn inflate(data: &[u8]) -> Option<Vec<u8>> {+ let read = |mut r: Box<dyn Read + '_>| {+ let mut out = vec![];+ // (Damaged data: what came out before the damage still counts.)+ let done = r.by_ref().take(MAX_DECODED as u64 + 1).read_to_end(&mut out).is_ok();+ (done || out.len() > MAX_DECODED).then_some(out)+ };+ read(Box::new(flate2::read::ZlibDecoder::new(data))).or_else(|| read(Box::new(flate2::read::DeflateDecoder::new(data))))+ }++ /// `data` decoded from LZW, up to one byte past [`MAX_DECODED`]. `early`: the code length grows+ /// one code early (`EarlyChange`, 1 by default).+ fn lzw(data: &[u8], early: bool) -> Option<Vec<u8>> {+ use weezl::{BitOrder, LzwStatus, decode::Decoder};+ let mut decoder = if early { Decoder::with_tiff_size_switch(BitOrder::Msb, 8) } else { Decoder::new(BitOrder::Msb, 8) };+ let (mut out, mut chunk, mut input) = (vec![], vec![0; 1 << 16], data);+ while out.len() <= MAX_DECODED {+ let r = decoder.decode_bytes(input, &mut chunk);+ input = input.get(r.consumed_in..).unwrap_or_default();+ out.extend_from_slice(chunk.get(..r.consumed_out).unwrap_or_default());+ match r.status {+ Ok(LzwStatus::Ok) => {}+ Ok(LzwStatus::Done | LzwStatus::NoProgress) => break,+ Err(_) => return (out.len() > MAX_DECODED).then_some(out),+ }+ }+ Some(out)+ }++ /// `data` decoded from run-length encoding, up to one byte past [`MAX_DECODED`].+ fn run_length(data: &[u8]) -> Vec<u8> {+ let (mut out, mut at) = (vec![], 0);+ while let Some(&n) = data.get(at)+ && n != 128+ && out.len() <= MAX_DECODED+ {+ if n < 128 {+ let take = usize::from(n) + 1;+ out.extend_from_slice(data.get(at + 1..).unwrap_or_default().get(..take).unwrap_or_default());+ at += 1 + take;+ } else {+ out.extend(std::iter::repeat_n(data.get(at + 1).copied().unwrap_or(0), 257 - usize::from(n)));+ at += 2;+ }+ }+ out+ }++ /// `data` decoded from hexadecimal digits (white space skipped, up to `>`).+ fn hex(data: &[u8]) -> Vec<u8> {+ let digits: Vec<u8> = data.iter().take_while(|c| **c != b'>').filter_map(|c| char::from(*c).to_digit(16)).map(|d| d as u8).collect();+ digits.chunks(2).map(|p| (p.first().copied().unwrap_or(0) << 4) | p.get(1).copied().unwrap_or(0)).collect()+ }++ /// `data` decoded from base-85 (white space skipped, `z` for four zeros, up to `~>`).+ fn base85(data: &[u8]) -> Vec<u8> {+ let (mut out, mut group) = (vec![], vec![]);+ let flush = |group: &mut Vec<u32>, out: &mut Vec<u8>| {+ let n = group.len();+ if n > 1 {+ group.resize(5, 84);+ let v = group.iter().fold(0u32, |v, d| v.wrapping_mul(85).wrapping_add(*d));+ out.extend_from_slice(v.to_be_bytes().get(..n - 1).unwrap_or_default());+ }+ group.clear();+ };+ for &c in data.iter().take_while(|c| **c != b'~') {+ match c {+ b'z' if group.is_empty() => out.extend([0; 4]),+ b'!'..=b'u' => {+ group.push(u32::from(c - b'!'));+ if group.len() == 5 {+ flush(&mut group, &mut out);+ }+ }+ _ => {}+ }+ }+ flush(&mut group, &mut out);+ out+ }++ /// The most data of `len` bytes can grow to through `filters`: 1,032 times through Flate (its+ /// largest ratio), 3,641 through LZW (4,096 bytes from a 9-bit code), 64 through run-length.+ fn most_after(len: usize, filters: &[Name<'_>]) -> u128 {+ filters.iter().fold(len as u128, |n, f| {+ n.saturating_mul(match f.as_ref() {+ b"FlateDecode" | b"Fl" => 1032,+ b"LZWDecode" | b"LZW" => 3641,+ b"RunLengthDecode" | b"RL" => 64,+ _ => 1,+ })+ })+ }++ /// `data` (of the stream with dictionary `dict`) through its filters, as far as this reads them:+ /// Flate, LZW, run-length and the ASCII encodings. Not decoded when it can't decode past+ /// [`MAX_DECODED`] and `keep` doesn't ask for it, or when an image codec or damaged data comes+ /// first (an image's own decoder knows its size).+ fn decode(data: &[u8], dict: &Dict<'_>, keep: bool) -> Result<Option<Vec<u8>>, TooBig> {+ let filters = filters(dict);+ if !keep && most_after(data.len(), &filters) <= MAX_DECODED as u128 {+ return Ok(None);+ }+ let params = params(dict);+ let mut data = Cow::Borrowed(data);+ for (i, f) in filters.iter().enumerate() {+ let early = params.get(i).and_then(|p| p.get::<u8>(b"EarlyChange")).is_none_or(|e| e != 0);+ let out = match f.as_ref() {+ b"FlateDecode" | b"Fl" => inflate(&data),+ b"LZWDecode" | b"LZW" => lzw(&data, early),+ b"RunLengthDecode" | b"RL" => Some(run_length(&data)),+ b"ASCIIHexDecode" | b"AHx" => Some(hex(&data)),+ b"ASCII85Decode" | b"A85" => Some(base85(&data)),+ _ => None,+ };+ match out {+ Some(out) if out.len() > MAX_DECODED => return Err(TooBig),+ Some(out) => data = Cow::Owned(out),+ None => return Ok(None),+ }+ }+ Ok(Some(data.into_owned()))+ }++ /// May the stream with dictionary `dict` be content (of a page, form, pattern or glyph), which can+ /// hold inline images? Not an image, font, profile, function, metadata or object stream.+ fn maybe_content(dict: &Dict<'_>) -> bool {+ let named = |key: &[u8], ok: &[&[u8]]| dict.get::<Name<'_>>(key).is_none_or(|n| ok.contains(&n.as_ref()));+ named(b"Subtype", &[b"Form"])+ && named(b"Type", &[b"XObject", b"Pattern"])+ && ![&b"Length1"[..], b"Length2", b"Length3", b"FunctionType", b"N"].iter().any(|k| dict.contains_key(k))+ }++ /// Would the reader fail on `stream` (or on an inline image in it, when it is content): a+ /// predictor it can't apply, or more than [`MAX_DECODED`] decoded?+ pub(crate) fn unsafe_stream(stream: &Stream<'_>) -> bool {+ unsafe_data(stream, true)+ }++ /// [`unsafe_stream`], looking for inline images in it when `inside` (not in an inline image's own+ /// data: it would be read again for each inline image a hostile one nests).+ fn unsafe_data(stream: &Stream<'_>, inside: bool) -> bool {+ let dict = stream.dict();+ if params(dict).iter().any(bad_predictor) {+ return true;+ }+ let content = inside && maybe_content(dict);+ match decode(&stream.raw_data(), dict, content) {+ Err(TooBig) => true,+ Ok(Some(data)) if content && data.windows(2).any(|w| w == b"ID") => {+ let mut ops = TypedIter::new(&data);+ while let Some(op) = ops.next() {+ if let TypedInstruction::InlineImage(image) = op+ && unsafe_data(image.0, false)+ {+ return true;+ }+ }+ false+ }+ Ok(_) => false,+ }+ }++ /// Would the reader fail on a stream it decodes while it opens `pdf`, before anything else can+ /// look at it: an object stream or a cross-reference stream (read here from the file's text)?+ /// Their decode parameters must be in their dictionary, as the reader can't be asked for others+ /// yet. Encrypted object streams are looked at once the file is open (their data is ciphered+ /// here).+ pub(crate) fn unsafe_file_streams(pdf: &[u8]) -> bool {+ let find = |from: usize, what: &[u8]| pdf.get(from..).and_then(|rest| rest.windows(what.len()).position(|w| w == what)).map(|at| from + at);+ let mut from = 0;+ while let Some(at) = find(from, b"stream") {+ from = at + 6;+ if at >= 3 && pdf.get(at - 3..at) == Some(b"end") {+ continue;+ }+ // The dictionary before it: back from its `>>` to the `<<` that opens it.+ let Some(close) = pdf.get(..at).and_then(|head| head.iter().rposition(|c| !c.is_ascii_whitespace())).map(|i| i + 1) else { continue };+ if close < 2 || pdf.get(close - 2..close) != Some(b">>") {+ continue;+ }+ let (mut depth, mut open, mut i) = (0usize, None, close);+ while i >= 2 && close - i < 1 << 16 {+ match pdf.get(i - 2..i) {+ Some(b">>") => (depth, i) = (depth + 1, i - 2),+ Some(b"<<") => {+ depth -= 1;+ i -= 2;+ if depth == 0 {+ open = Some(i);+ break;+ }+ }+ _ => i -= 1,+ }+ }+ let Some(dict) = open.and_then(|o| pdf.get(o..close)).and_then(Dict::from_bytes) else { continue };+ if !dict.get::<Name<'_>>(b"Type").is_some_and(|t| matches!(t.as_ref(), b"ObjStm" | b"XRef")) {+ continue;+ }+ let indirect = [&b"DecodeParms"[..], b"DP"].iter().any(|k| matches!(dict.get_raw::<Object<'_>>(k), Some(MaybeRef::Ref(_))));+ if indirect || params(&dict).iter().any(bad_predictor) {+ return true;+ }+ let start = from+ + usize::from(pdf.get(from) == Some(&b'\r'))+ + usize::from(pdf.get(from + usize::from(pdf.get(from) == Some(&b'\r'))) == Some(&b'\n'));+ let end = dict+ .get::<usize>(b"Length")+ .and_then(|n| start.checked_add(n))+ .filter(|e| *e <= pdf.len())+ .or_else(|| find(start, b"endstream"))+ .unwrap_or(pdf.len());+ if matches!(decode(pdf.get(start..end).unwrap_or_default(), &dict, false), Err(TooBig)) {+ return true;+ }+ }+ false+ }++ #[cfg(test)]+ mod tests {+ use super::*;++ fn dict(text: &str) -> Dict<'_> {+ Dict::from_bytes(text.as_bytes()).unwrap()+ }++ #[test]+ fn predictors_the_reader_can_apply_pass() {+ for ok in [+ "<< >>",+ "<< /Predictor 1 /Columns 0 >>",+ "<< /Predictor 12 /Columns 5 >>",+ "<< /Predictor 2 /Colors 3 /BitsPerComponent 16 /Columns 1000 >>",+ ] {+ assert!(!bad_predictor(&dict(ok)), "{ok}");+ }+ for bad in [+ "<< /Predictor 2 /Columns 0 >>",+ "<< /Predictor 12 /Colors 0 >>",+ "<< /Predictor 2 /BitsPerComponent 0 >>",+ "<< /Predictor 2 /BitsPerComponent 3 >>",+ "<< /Predictor 12 /Colors 32 /BitsPerComponent 16 >>",+ "<< /Predictor 15 /Columns 99999999999 >>",+ "<< /Predictor 10 /Columns 18446744073709551615 /Colors 4 >>",+ ] {+ assert!(bad_predictor(&dict(bad)), "{bad}");+ }+ }++ #[test]+ fn the_decoders_read_what_the_specification_writes() {+ assert_eq!(hex(b"48 65 6c6C6\n>junk"), b"Hell`");+ assert_eq!(base85(b"87cURD]i,\"Ebo80~>"), b"Hello World!");+ assert_eq!(base85(b"z!!~>"), [0, 0, 0, 0, 0]);+ assert_eq!(run_length(&[2, b'a', b'b', b'c', 254, b'x', 128, b'q']), b"abcxxx");+ let mut e = flate2::write::ZlibEncoder::new(Vec::new(), flate2::Compression::default());+ std::io::Write::write_all(&mut e, &[7; 1000]).unwrap();+ assert_eq!(inflate(&e.finish().unwrap()).unwrap(), [7; 1000]);+ // "-----A---B" in LZW, as the specification's example writes it (7.4.4.2).+ let lzw_example = [0x80, 0x0B, 0x60, 0x50, 0x22, 0x0C, 0x0C, 0x85, 0x01];+ assert_eq!(lzw(&lzw_example, true).unwrap(), b"-----A---B");+ }++ /// Zeros past the cap, compressed.+ fn zeros_past_the_cap() -> Vec<u8> {+ let mut e = flate2::write::ZlibEncoder::new(Vec::new(), flate2::Compression::best());+ for _ in 0..(MAX_DECODED >> 20) + 1 {+ std::io::Write::write_all(&mut e, &[0; 1 << 20]).unwrap();+ }+ e.finish().unwrap()+ }++ #[test]+ fn a_stream_that_decodes_past_the_cap_is_found_without_holding_it() {+ // Inflated in pieces: never more than one byte past the cap is held.+ let bomb = zeros_past_the_cap();+ assert!(bomb.len() < MAX_DECODED / 500);+ assert_eq!(inflate(&bomb).map(|d| d.len()), Some(MAX_DECODED + 1));+ let d = dict("<< /Filter /FlateDecode >>");+ assert!(matches!(decode(&bomb, &d, false), Err(TooBig)));+ // Small enough that it can't get there: not decoded at all.+ assert!(matches!(decode(&[1, 2, 3], &d, false), Ok(None)));+ }++ #[test]+ fn object_and_cross_reference_streams_are_looked_at_before_the_file_is_read() {+ let stream = |dict: &str, data: &[u8]| {+ [format!("1 0 obj\n<< {dict} /Length {} >>\nstream\n", data.len()).as_bytes(), data, b"\nendstream\nendobj\n"].concat()+ };+ for bad in [+ stream("/Type /ObjStm /N 1 /First 4 /Filter /FlateDecode /DecodeParms << /Predictor 2 /Columns 0 >>", b"x"),+ stream("/Type /XRef /Filter /FlateDecode /DecodeParms 9 0 R", b"x"),+ stream("/Type /ObjStm /N 1 /First 4 /Filter /FlateDecode", &zeros_past_the_cap()),+ ] {+ assert!(unsafe_file_streams(&bad));+ }+ for fine in [+ stream("/Type /XRef /Filter /FlateDecode /DecodeParms << /Predictor 12 /Columns 5 >>", b"x"),+ // Another kind of stream is looked at once the file is open, its references followed.+ stream("/Filter /FlateDecode /DecodeParms << /Predictor 2 /Columns 0 >>", b"x"),+ ] {+ assert!(!unsafe_file_streams(&fine));+ }+ }+ }diff --cc crates/pdf/src/tests_import_layers.rsindex eddade6cf,82032f2c6..7c520fcde--- a/crates/pdf/src/tests_import_layers.rs+++ b/crates/pdf/src/tests_import_layers.rs@@@ -315,11 -315,12 +315,12 @@@ fn thousands_of_layers_hidden_ones_incl}/// Import `bytes` with the scan's operator limit lowered to `n`.-fn import_with_max_ops(bytes: &[u8], n: usize) -> ImportReport {+fn import_with_max_ops(bytes: &[u8], n: usize) -> Result<ImportReport, PdfError> {let old = crate::import_scan::TEST_MAX_OPS.replace(n);- let r = import_with_report(bytes, &ImportOptions::default());+ // (On this thread: the limit is this thread's.)+ let r = crate::import::read(bytes, &ImportOptions::default());crate::import_scan::TEST_MAX_OPS.set(old);- r.unwrap()+ r}#[test]diff --cc crates/pdf/src/tests_reader_compat.rsindex 000000000,000000000..a98674ea3new file mode 100644--- /dev/null+++ b/crates/pdf/src/tests_reader_compat.rs@@@ -1,0 -1,0 +1,179 @@@++//! Current-main import contracts across the shared reader's older Device API.++++use vectorcraft_color::Paint;++use vectorcraft_doc::{Document, NodeKind};++++use crate::{ImportOptions, TextAs, import_with_report};++++const INTER: &[u8] = include_bytes!("../../../assets/fonts/Inter-Regular.ttf");++++fn stream(dictionary: &str, content: &[u8]) -> Vec<u8> {++ let mut bytes = format!("<< {dictionary} /Length {} >>\nstream\n", content.len()).into_bytes();++ bytes.extend_from_slice(content);++ bytes.extend_from_slice(b"\nendstream");++ bytes++}++++fn assemble(objects: &[Vec<u8>]) -> Vec<u8> {++ let mut bytes = b"%PDF-1.7\n".to_vec();++ let mut offsets = vec![];++ for (i, body) in objects.iter().enumerate() {++ offsets.push(bytes.len());++ bytes.extend_from_slice(format!("{} 0 obj\n", i + 1).as_bytes());++ bytes.extend_from_slice(body);++ bytes.extend_from_slice(b"\nendobj\n");++ }++ let start = bytes.len();++ bytes.extend_from_slice(format!("xref\n0 {}\n0000000000 65535 f \n", objects.len() + 1).as_bytes());++ for offset in offsets {++ bytes.extend_from_slice(format!("{offset:010} 00000 n \n").as_bytes());++ }++ bytes.extend_from_slice(format!("trailer << /Size {} /Root 1 0 R >>\nstartxref\n{start}\n%%EOF\n", objects.len() + 1).as_bytes());++ bytes++}++++fn page(resources: &str, content: &[u8], extra: &[Vec<u8>]) -> Vec<u8> {++ let mut objects = vec![++ b"<< /Type /Catalog /Pages 2 0 R >>".to_vec(),++ b"<< /Type /Pages /Count 1 /Kids [3 0 R] >>".to_vec(),++ format!("<< /Type /Page /Parent 2 0 R /MediaBox [0 0 100 60] /Contents 4 0 R /Resources << {resources} >> >>").into_bytes(),++ stream("", content),++ ];++ objects.extend_from_slice(extra);++ assemble(&objects)++}++++pub(crate) fn resource_scope_cases() -> Vec<(&'static str, Vec<u8>, bool)> {++ [++ ("absent", "", true),++ ("empty", "/Resources << >>", false),++ ("unrelated", "/Resources << /ProcSet [/PDF] >>", false),++ ("own-off", "/Resources << /ExtGState << /On << /OP false /op false /OPM 1 >> >> >>", false),++ ("own-on", "/Resources << /ExtGState << /On << /OP true /op true /OPM 1 >> >> >>", true),++ ]++ .into_iter()++ .map(|(name, scope, first)| {++ let form = stream(&format!("/Type /XObject /Subtype /Form /BBox [0 0 100 60] {scope}"), b"/On gs 10 10 20 20 re f");++ let bytes =++ page("/XObject << /Outer 5 0 R >> /ExtGState << /On << /OP true /op true /OPM 1 >> >>", b"/Outer Do /On gs 50 10 20 20 re f", &[form]);++ (name, bytes, first)++ })++ .collect()++}++++pub(crate) fn resource_scope_contract() {++ for (name, bytes, first) in resource_scope_cases() {++ let report = import_with_report(&bytes, &ImportOptions::default()).unwrap();++ let mut overprints = vec![];++ report.document.walk(|node| {++ if matches!(node.kind, NodeKind::Path { clipping: false, .. }) {++ overprints.extend(node.appearance.fill().map(|fill| fill.overprint));++ }++ });++ assert_eq!(overprints, [first, true], "form scope {name}; the caller's resources return after the form");++ assert!(report.warnings.is_empty(), "{name}: {:?}", report.warnings);++ }++}++++#[test]++fn form_resource_scopes_keep_scanned_overprint_in_step_with_interpretation() {++ resource_scope_contract();++}++++pub(crate) fn text_pdf(content: &str) -> Vec<u8> {++ page(++ "/Font << /F1 5 0 R >> /ExtGState << /G << /ca 0.25 /CA 0.75 >> >>",++ content.as_bytes(),++ &[++ b"<< /Type /Font /Subtype /TrueType /BaseFont /Inter-Regular /Encoding /WinAnsiEncoding /FirstChar 65 /LastChar 67 /Widths [600 600 600] /FontDescriptor 6 0 R >>".to_vec(),++ b"<< /Type /FontDescriptor /FontName /Inter-Regular /Flags 32 /FontFile2 7 0 R >>".to_vec(),++ stream("", INTER),++ ],++ )++}++++pub(crate) fn text_content(mode: u8, explicit: bool, following: bool) -> String {++ let show = "1 0 0 1 10 20 Tm [(A) 400 (B)] TJ";++ let paint = if explicit { format!("0 Tr {show} {} Tr {show}", if mode == 6 { 5 } else { 1 }) } else { format!("{mode} Tr {show}") };++ // The green rectangle also exercises the text clip installed at ET for mode 6.++ let after = if following { " (C) Tj" } else { "" };++ format!("/G gs 1 0 0 rg 0 0 1 RG 2 w BT /F1 20 Tf {paint}{after} ET 0 1 0 rg 0 0 100 60 re f")++}++++fn text_document(mode: u8, explicit: bool, text_as: TextAs) -> Document {++ import_with_report(&text_pdf(&text_content(mode, explicit, false)), &ImportOptions { text_as, ..Default::default() }).unwrap().document++}++++pub(crate) fn text_order_contract() {++ for mode in [2, 6] {++ for text_as in [TextAs::Text, TextAs::Outlines] {++ let combined = text_document(mode, false, text_as);++ let explicit = text_document(mode, true, text_as);++ assert_eq!(++ serde_json::to_value(&combined).unwrap(),++ serde_json::to_value(&explicit).unwrap(),++ "{mode} Tr, {text_as:?}: imported objects must match a complete fill pass followed by a complete stroke pass"++ );++ }++ }++ let live = text_document(2, false, TextAs::Text);++ let mut texts = vec![];++ live.walk(|node| {++ if let NodeKind::Text(text) = &node.kind {++ texts.push((node.opacity, text.plain_text(), text.first_style().clone()));++ }++ });++ assert_eq!(texts.len(), 2, "the filled and stroked AB runs retain separate alpha: {texts:?}");++ assert_eq!((texts[0].0, texts[0].1.as_str()), (64.0 / 255.0, "AB"));++ assert_eq!((texts[1].0, texts[1].1.as_str()), (191.0 / 255.0, "AB"));++ assert!(texts[0].2.stroke.is_none() && !texts[0].2.fill.is_none());++ assert!(texts[1].2.fill.is_none() && !texts[1].2.stroke.is_none());++++ let outlined = text_document(2, false, TextAs::Outlines);++ let mut paints = vec![];++ outlined.walk(|node| {++ if matches!(node.kind, NodeKind::Path { clipping: false, .. }) {++ if let Some(fill) = node.appearance.fill() {++ paints.push(('F', fill.opacity, fill.paint.clone()));++ }++ if let Some(stroke) = node.appearance.stroke() {++ paints.push(('S', stroke.opacity, stroke.paint.clone()));++ }++ }++ });++ assert_eq!(paints.len(), 3, "one whole-run fill, one whole-run stroke, then the green rectangle");++ assert_eq!((paints[0].0, paints[0].1), ('F', 64.0 / 255.0));++ assert_eq!((paints[1].0, paints[1].1), ('S', 191.0 / 255.0));++ assert_eq!(paints[2].0, 'F');++ assert!(matches!(paints[0].2, Paint::Solid { .. }) && matches!(paints[1].2, Paint::Solid { .. }));++}++++#[test]++fn filled_stroked_tj_runs_preserve_app_text_outline_alpha_and_clip_grouping() {++ text_order_contract();++}++++pub(crate) fn transfer_pdf(low: &str, high: &str) -> Vec<u8> {++ page(++ "/ExtGState << /G << /SMask << /S /Luminosity /G 5 0 R /TR 6 0 R >> >> >>",++ b"/G gs 1 0 0 rg 0 0 100 60 re f",++ &[++ stream("/Type /XObject /Subtype /Form /BBox [0 0 100 60] /Group << /S /Transparency /CS /DeviceRGB >>", b"1 1 1 rg 0 0 50 60 re f"),++ format!("<< /FunctionType 2 /Domain [0 1] /C0 [{low}] /C1 [{high}] /N 1 >>").into_bytes(),++ ],++ )++}++++pub(crate) fn transfer_contract() {++ for (low, high, expected) in [("0.5001", "0.5", false), ("1", "0", true), ("0", "1", false)] {++ let report = import_with_report(&transfer_pdf(low, high), &ImportOptions::default()).unwrap();++ let mut inverted = vec![];++ report.document.walk(|node| inverted.extend(node.extras().mask.as_ref().map(|mask| mask.invert)));++ assert_eq!(inverted, [expected], "sampled endpoints C0={low}, C1={high}");++ }++}++++#[test]++fn soft_mask_inversion_uses_quantized_transfer_endpoints() {++ transfer_contract();++}diff --cc crates/pdf/src/tests_reader_streaming.rsindex f15538020,000000000..a9a76f318mode 100644,000000..100644--- a/crates/pdf/src/tests_reader_streaming.rs+++ b/crates/pdf/src/tests_reader_streaming.rs@@@ -1,188 -1,0 +1,195 @@@+//! Synthetic page-content regressions for the shared reader's windowed input.++use std::io::Write;++use crate::{ImportOptions, ImportReport, import_with_report};+use vectorcraft_doc::NodeKind;++fn stream(entries: &str, bytes: &[u8]) -> Vec<u8> {+ let mut out = format!("<< /Length {} {entries} >>\nstream\n", bytes.len()).into_bytes();+ out.extend_from_slice(bytes);+ out.extend_from_slice(b"\nendstream");+ out+}++/// A classic xref keeps the fixture's content-stream policy independent of xref decoding.+fn pdf(contents: &[Vec<u8>], resources: &str, catalog: &str, extra: &[Vec<u8>]) -> Vec<u8> {+ let refs = (0..contents.len()).map(|i| format!("{} 0 R", i + 4)).collect::<Vec<_>>().join(" ");+ let mut objects = vec![+ format!("<< /Type /Catalog /Pages 2 0 R {catalog} >>").into_bytes(),+ b"<< /Type /Pages /Kids [3 0 R] /Count 1 >>".to_vec(),+ format!("<< /Type /Page /Parent 2 0 R /MediaBox [0 0 100 100] /Resources << {resources} >> /Contents [{refs}] >>").into_bytes(),+ ];+ objects.extend_from_slice(contents);+ objects.extend_from_slice(extra);+ let mut out = b"%PDF-1.7\n".to_vec();+ let mut offsets = vec![0];+ for (i, object) in objects.iter().enumerate() {+ offsets.push(out.len());+ out.extend(format!("{} 0 obj\n", i + 1).bytes());+ out.extend_from_slice(object);+ out.extend_from_slice(b"\nendobj\n");+ }+ let xref = out.len();+ out.extend(format!("xref\n0 {}\n0000000000 65535 f \n", offsets.len()).bytes());+ for offset in offsets.iter().skip(1) {+ out.extend(format!("{offset:010} 00000 n \n").bytes());+ }+ out.extend(format!("trailer\n<< /Size {} /Root 1 0 R >>\nstartxref\n{xref}\n%%EOF\n", offsets.len()).bytes());+ out+}++fn open(bytes: &[u8]) -> ImportReport {+ import_with_report(bytes, &ImportOptions::default()).unwrap()+}++fn fills(report: &ImportReport) -> Vec<bool> {+ let mut fills = vec![];+ report.document.walk(|n| {+ if matches!(n.kind, NodeKind::Path { .. }) {+ fills.extend(n.appearance.fill().map(|f| f.overprint));+ }+ });+ fills+}++fn assert_incomplete(bytes: &[u8]) {+ let error = import_with_report(bytes, &ImportOptions::default()).expect_err("known incomplete content must fail");+ assert!(error.to_string().contains("no document was imported"), "{error}");+}++#[test]+fn content_windows_preserve_layers_and_saved_overprint_state() {+ let mut content = b"/OC /Layer BDC q /On gs ".to_vec();+ // Force both the marked-content and graphics states to cross several 64 KiB windows.+ content.extend("q Q ".repeat(40_000).bytes());+ content.extend_from_slice(b"10 10 20 20 re f Q 40 10 20 20 re f EMC");+ let report = open(&pdf(+ &[stream("", &content)],+ "/Properties << /Layer 5 0 R >> /ExtGState << /On << /OP true /op true /OPM 1 >> >>",+ "/OCProperties << /OCGs [5 0 R] /D << /Order [5 0 R] >> >>",+ &[b"<< /Type /OCG /Name (Across windows) >>".to_vec()],+ ));+ assert_eq!(report.document.layers.len(), 1);+ assert_eq!(report.document.layers[0].name.as_deref(), Some("Across windows"));+ assert_eq!(fills(&report), [true, false]);+ assert!(report.warnings.is_empty(), "{:?}", report.warnings);+}++#[test]+fn long_operands_and_contents_array_boundaries_are_read_whole() {+ let mut first = b"/Span << /ActualText (".to_vec();+ first.extend(std::iter::repeat_n(b'a', 96_000));+ first.extend_from_slice(b") >> BDC 10 10");+ let report = open(&pdf(&[stream("", &first), stream("", b" 20 20 re f EMC\0 % trailing comment")], "", "", &[]));+ assert_eq!(fills(&report), [false]);+}++#[test]+fn inline_image_crossing_a_content_window_preserves_the_next_path() {+ let mut content = b"q 10 0 0 10 0 0 cm BI /W 300 /H 100 /CS /RGB /BPC 8 ID ".to_vec();+ content.extend(std::iter::repeat_n(127, 90_000));+ content.extend_from_slice(b" EI Q 20 20 30 30 re f");+ let report = open(&pdf(&[stream("", &content)], "", "", &[]));+ let mut images = 0;+ report.document.walk(|n| images += usize::from(matches!(n.kind, NodeKind::Image(_))));+ assert_eq!(images, 1);+ assert_eq!(fills(&report), [false]);+}++#[test]+fn undecidable_final_operands_are_rejected() {+ for tail in [b" 10 20".as_slice(), b" (unfinished", b" [1 2", b" << /Key"] {+ let mut content = b"10 10 20 20 re f".to_vec();+ content.extend_from_slice(tail);+ assert_incomplete(&pdf(&[stream("", &content)], "", "", &[]));+ }+}++#[test]+fn incomplete_instruction_window_limit_is_an_error() {+ let mut content = b"/Span << /ActualText (".to_vec();+ content.extend(std::iter::repeat_n(b'a', 4096));+ content.extend_from_slice(b") >> BDC 10 10 20 20 re f EMC");+ let bytes = pdf(&[stream("", &content)], "", "", &[]);+ assert_eq!(fills(&open(&bytes)), [false]);+ let old = crate::import_scan::TEST_MAX_WINDOW.replace(1024);- let result = import_with_report(&bytes, &ImportOptions::default());++ // The override belongs to this thread; the public entry point uses a dedicated stack.++ let result = crate::import::read(&bytes, &ImportOptions::default());+ crate::import_scan::TEST_MAX_WINDOW.set(old);+ assert!(result.unwrap_err().to_string().contains("no document was imported"));+}++#[test]+fn failed_content_and_form_decoders_are_errors() {+ assert_incomplete(&pdf(&[stream("/Filter /ASCIIHexDecode", b"ZZ>")], "", "", &[]));+ assert_incomplete(&pdf(+ &[stream("", b"/Fm Do")],+ "/XObject << /Fm 5 0 R >>",+ "",+ &[stream("/Type /XObject /Subtype /Form /BBox [0 0 100 100] /Filter /ASCIIHexDecode", b"ZZ>")],+ ));+}++#[test]+fn truncated_flate_does_not_return_a_partial_document() {+ let mut encoder = flate2::write::ZlibEncoder::new(Vec::new(), flate2::Compression::default());+ encoder.write_all(b"10 10 20 20 re f ").unwrap();+ let mut compressed = encoder.finish().unwrap();+ compressed.truncate(compressed.len() - 6);+ assert_incomplete(&pdf(&[stream("/Filter /FlateDecode", &compressed)], "", "", &[]));+}++#[test]+fn lower_document_decode_limit_rejects_run_length_prefixes() {+ let content = b"10 10 20 20 re f 40 40 20 20 re f";+ let mut encoded = vec![(content.len() - 1) as u8];+ encoded.extend_from_slice(content);+ encoded.push(128);+ for is_form in [false, true] {+ let bytes = if is_form {+ pdf(+ &[stream("", b"/Fm Do")],+ "/XObject << /Fm 5 0 R >>",+ "",+ &[stream("/Type /XObject /Subtype /Form /BBox [0 0 100 100] /Filter /RunLengthDecode", &encoded)],+ )+ } else {+ pdf(&[stream("/Filter /RunLengthDecode", &encoded)], "", "", &[])+ };+ assert_eq!(fills(&open(&bytes)), [false, false]);+ let mut options = crate::pages::open_options();+ options.decode_limits = options.decode_limits.with_max_decoded_stream(16);+ let error = crate::import::import_with_reader_options(&bytes, &ImportOptions::default(), &options).unwrap_err();+ assert!(error.to_string().contains("no document was imported"), "is_form={is_form}: {error}");+ }+}+#[test]- fn lowered_materialization_limit_still_checks_streamed_nesting() {++fn lowered_materialization_limit_rejects_incomplete_nested_content() {+ let content = format!("/Span << /A {}0{} >> BDC 10 10 20 20 re f EMC", "[".repeat(300), "]".repeat(300));+ let mut encoder = flate2::write::ZlibEncoder::new(Vec::new(), flate2::Compression::default());+ encoder.write_all(content.as_bytes()).unwrap();+ let bytes = pdf(&[stream("/Filter /FlateDecode", &encoder.finish().unwrap())], "", "", &[]);+ let mut options = crate::pages::open_options();+ options.decode_limits = options.decode_limits.with_max_decoded_stream(16);+ let error = crate::import::import_with_reader_options(&bytes, &ImportOptions::default(), &options)- .expect_err("streaming nesting must be checked even when ordinary materialization omits it");- assert!(error.to_string().contains("nested more than 256 deep"), "{error}");++ .expect_err("bounded operand parsing must reject incomplete streamed content");++ assert!(++ matches!(error, crate::PdfError::Parse(ref message) if message == "PDF content is incomplete or exceeds the reader's limits; no document was imported"),++ "{error}"++ );+}++#[test]+fn decoded_dictionary_delimiter_split_at_content_window_is_checked() {+ let mut content = vec![b' '; (64 << 10) - 1];+ content.extend(format!("{}0{} DP", "<< /A ".repeat(300), ">> ".repeat(300)).bytes());+ let mut encoder = flate2::write::ZlibEncoder::new(Vec::new(), flate2::Compression::default());+ encoder.write_all(&content).unwrap();+ let bytes = pdf(&[stream("/Filter /FlateDecode", &encoder.finish().unwrap())], "", "", &[]);+ let error = import_with_report(&bytes, &ImportOptions::default()).unwrap_err();- assert!(error.to_string().contains("nested more than 256 deep"), "{error}");++ assert!(++ matches!(error, crate::PdfError::Parse(ref message) if message == "PDF content is incomplete or exceeds the reader's limits; no document was imported"),++ "{error}"++ );+}diff --cc docs/file-format-parity.mdindex 47aa4a74c,cb4d12817..8bd249de0--- a/docs/file-format-parity.md+++ b/docs/file-format-parity.md@@@ -1,6 -1,6 +1,6 @@@# File format parity- > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** minor (PDF.R1: shared PDF reader with windowed content scanning and explicit incomplete-content errors; scores and estimates unchanged; PDF.W1: guarded shared PDF writer; output behavior, scores and estimates unchanged; verified PngSuite downloads, #1729; EPS stitched shadings, #1653; oversized images in WMF/EMF refused from the header, #1776; PDF name trees with shared nodes, #1781; native size limits for files read from memory, #1783; private temporary files on Unix, #1778; ruzstd 0.9.1, #1807; scores unchanged; SVG import: CSS transforms and the `font` shorthand, #1565, percentage lengths in symbols, #1596, Inkscape flowed text and pages, #1568, #1601, filter warnings, #1598; type on a path from PDF and `.ai`, #1585, #1586; ICC tag alignment in JPEG, TIFF and PSD, #1584; saves to folders that refuse the temporary file, #1620 in part; scores unchanged; TIFF is available in Export for Screens and Asset Export with shared format settings; scores and hours unchanged; compact native saves for documents with a lot of path data, #1492; PDF and EPS paste as vector art, #1499; `.ai` gradient stops listed upwards, #1530; SVG text on basic shapes, #1527; PDF soft masks drawn as images, #1551; Type 42 fonts in EPS, #1553; clips that only seem to cover the page, #1542; images too large to decode are reported, #1540; a `.ai` page's art past its artboard no longer lies over the page before it when read as its PDF part; grayscale TIFFs with an alpha channel or extra channels place and open, #1466 in part; a faded or masked fill keeps its stroke apart on PDF and `.ai` import, #1434; SVG knockout groups without masks, #1435; Affinity import: a text frame too short for its first line is made taller, #1423; `.ai` editing data: a compound path takes its last path's paint and keeps paths grouped inside it, #1410; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; `.ai` gradient matrices, meshes and artboard names from the editing data; `.ai` art styles, clipping fills and compound looks from the editing data; `editingData: "always"` opens a `.ai` from its editing data; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; `.ai` gradient matrices, meshes and artboard names from the editing data; `.ai` art styles, clipping fills and compound looks from the editing data; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; `.ai` gradient matrices, meshes and artboard names from the editing data; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; SVG knockout groups of opaque art without masks; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; `.ai` keeps its RGB numbers; PDF import keeps a stroke apart from a fill masked or faded by its group) · **Target:** Adobe Illustrator 2026 (30.x)-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** minor (PDF.W1: guarded shared PDF writer; output behavior, scores and estimates unchanged; later 2026-10-14 merges: SVG `:not()` selectors, #1557, stacked selectors, #1703, linked files, #1870; DXF VPORT, #1789; nesting caps, #1852; hostile PDF, `.ai`, EPS, Affinity and native data, #1862, #1863, #1871–#1873; failed saves, #1685, #1693, #1694; type in symbols after reopening, #1738; scores unchanged; verified PngSuite downloads, #1729; EPS stitched shadings, #1653; oversized images in WMF/EMF refused from the header, #1776; PDF name trees with shared nodes, #1781; native size limits for files read from memory, #1783; private temporary files on Unix, #1778; ruzstd 0.9.1, #1807; scores unchanged; SVG import: CSS transforms and the `font` shorthand, #1565, percentage lengths in symbols, #1596, Inkscape flowed text and pages, #1568, #1601, filter warnings, #1598; type on a path from PDF and `.ai`, #1585, #1586; ICC tag alignment in JPEG, TIFF and PSD, #1584; saves to folders that refuse the temporary file, #1620 in part; scores unchanged; TIFF is available in Export for Screens and Asset Export with shared format settings; scores and hours unchanged; compact native saves for documents with a lot of path data, #1492; PDF and EPS paste as vector art, #1499; `.ai` gradient stops listed upwards, #1530; SVG text on basic shapes, #1527; PDF soft masks drawn as images, #1551; Type 42 fonts in EPS, #1553; clips that only seem to cover the page, #1542; images too large to decode are reported, #1540; a `.ai` page's art past its artboard no longer lies over the page before it when read as its PDF part; grayscale TIFFs with an alpha channel or extra channels place and open, #1466 in part; a faded or masked fill keeps its stroke apart on PDF and `.ai` import, #1434; SVG knockout groups without masks, #1435; Affinity import: a text frame too short for its first line is made taller, #1423; `.ai` editing data: a compound path takes its last path's paint and keeps paths grouped inside it, #1410; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; `.ai` gradient matrices, meshes and artboard names from the editing data; `.ai` art styles, clipping fills and compound looks from the editing data; `editingData: "always"` opens a `.ai` from its editing data; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; `.ai` gradient matrices, meshes and artboard names from the editing data; `.ai` art styles, clipping fills and compound looks from the editing data; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; `.ai` gradient matrices, meshes and artboard names from the editing data; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; SVG knockout groups of opaque art without masks; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; `.ai` keeps its RGB numbers; PDF import keeps a stroke apart from a fill masked or faded by its group) · **Target:** Adobe Illustrator 2026 (30.x)++> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** minor (PDF.R1: shared PDF reader with windowed content scanning and explicit incomplete-content errors; scores and estimates unchanged; PDF.W1: guarded shared PDF writer; output behavior, scores and estimates unchanged; later 2026-10-14 merges: SVG `:not()` selectors, #1557, stacked selectors, #1703, linked files, #1870; DXF VPORT, #1789; nesting caps, #1852; hostile PDF, `.ai`, EPS, Affinity and native data, #1862, #1863, #1871–#1873; failed saves, #1685, #1693, #1694; type in symbols after reopening, #1738; scores unchanged; verified PngSuite downloads, #1729; EPS stitched shadings, #1653; oversized images in WMF/EMF refused from the header, #1776; PDF name trees with shared nodes, #1781; native size limits for files read from memory, #1783; private temporary files on Unix, #1778; ruzstd 0.9.1, #1807; scores unchanged; SVG import: CSS transforms and the `font` shorthand, #1565, percentage lengths in symbols, #1596, Inkscape flowed text and pages, #1568, #1601, filter warnings, #1598; type on a path from PDF and `.ai`, #1585, #1586; ICC tag alignment in JPEG, TIFF and PSD, #1584; saves to folders that refuse the temporary file, #1620 in part; scores unchanged; TIFF is available in Export for Screens and Asset Export with shared format settings; scores and hours unchanged; compact native saves for documents with a lot of path data, #1492; PDF and EPS paste as vector art, #1499; `.ai` gradient stops listed upwards, #1530; SVG text on basic shapes, #1527; PDF soft masks drawn as images, #1551; Type 42 fonts in EPS, #1553; clips that only seem to cover the page, #1542; images too large to decode are reported, #1540; a `.ai` page's art past its artboard no longer lies over the page before it when read as its PDF part; grayscale TIFFs with an alpha channel or extra channels place and open, #1466 in part; a faded or masked fill keeps its stroke apart on PDF and `.ai` import, #1434; SVG knockout groups without masks, #1435; Affinity import: a text frame too short for its first line is made taller, #1423; `.ai` editing data: a compound path takes its last path's paint and keeps paths grouped inside it, #1410; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; `.ai` gradient matrices, meshes and artboard names from the editing data; `.ai` art styles, clipping fills and compound looks from the editing data; `editingData: "always"` opens a `.ai` from its editing data; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; `.ai` gradient matrices, meshes and artboard names from the editing data; `.ai` art styles, clipping fills and compound looks from the editing data; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; `.ai` gradient matrices, meshes and artboard names from the editing data; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; SVG knockout groups of opaque art without masks; a `.ai` whose PDF part is only text opens from it, #1387; PDF and `.ai` import keep overprint, #1388; `.ai` editing data: gradients with middle stops, #1390; type of objects with an appearance, hidden layers and later artboards, #1391; area type in a frame too short for the fallback font, #1392; `.ai` editing data: placed (linked) files read, #1264; gradient-filled shapes import as paths, #1304; white constant alpha soft masks, #1286 in part; DXF control-point SPLINE closure read, #1299 follow-up; `.ai` and PDF trim and bleed boxes as artboard and bleed, #1266; `.ai` keeps its RGB numbers; PDF import keeps a stroke apart from a fill masked or faded by its group) · **Target:** Adobe Illustrator 2026 (30.x)Every format Illustrator opens, places, saves or exports, against VectorCraft's format table (`FORMATS`,`OPEN_EXTS`, `PLACE_EXTS` in `crates/engine/src/cmd/fileio/mod.rs`). Illustrator's list comes from its publicdiff --cc docs/pdf-backend.mdindex ec8b97fd2,77cc7b945..64038b946--- a/docs/pdf-backend.md+++ b/docs/pdf-backend.md@@@ -1,9 -1,11 +1,13 @@@-# PDF writer backend+# PDF backendPDF writing uses `craft-pdf` from `storytold/craft-libs`, pinned to- `89dcbb3060377a26c99a6d80caa16084366704c4`. Its `write` feature supplies Krilla configuration,-`f39922b214dc429bcf6551ef71ed3631337b2acf`. Its `write` feature supplies Krilla configuration,++`ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d`. Its `write` feature supplies Krilla configuration,metadata construction, fallible font preparation and serialization, and native unwind guards.-The dependency disables default features and enables only `write`.+The dependency disables default features and enables `write` and `interpret`.+ The production writer retains Krilla’s raster-image support without its optional text shaper.+ PDF test fixtures enable `simple-text` through a dev dependency.++The PDF crate explicitly retains the `flate2` `zlib-rs` feature previously supplied++by the registry reader, preserving compressed export bytes and their derived document IDs.VectorCraft owns document traversal, drawing, font selection and embedding policy, colourconversion, presets, page boxes, layers, editing data, postprocessing and print composition.@@@ -24,45 -26,3 +28,49 @@@ VectorCraft retains its finite-coordinaoutside the writer's supported coordinate range. Font preparation checks the shared512 MiB per-font copy limit and variation coordinates before allocation; failure preservesVectorCraft's reported outline fallback. The writer is not a peak-memory or runtime budget.++PDF reading uses the same shared revision's patched Hayro syntax 0.7.2, interpreter 0.7.0- and JBIG2 0.3.0. The application explicitly preserves its existing accepted file sizes with++and JBIG2 0.3.0. This snapshot also retains CCITT 0.3.0 and JPEG 2000 0.3.5.++Its established Lab conversion uses Bradford adaptation; calibrated gray/RGB and tint-function++conversion retain floating-point precision. This policy differs from the registry 0.8 reader's++Lab profile and byte-quantized conversion and is assessed against independent colour expectations.++The application explicitly preserves its existing accepted file sizes with+`OpenOptions { max_input_bytes: usize::MAX, ..Default::default() }`; this migration adds no+new file-size ceiling. Ordinary decoded streams use the shared backend's immutable+per-document limits. Those limits are separate from streaming page-content budgets and+do not bound aggregate document or process memory. Password classification and the+existing permissions-password fallback remain application policy.++The layer and overprint pre-scan consumes `ContentReader` windows through `TypedIter`,+retaining graphics and marked-content state between windows. It does not collect a whole+page before scanning. Reaching the scan's operator, nesting or instruction-window limit,+a reported failed/truncated stream, a cap-reaching filtered form, or an undecidable final+operand tail returns an import error and discards the partial document. Previously the+operator limit could return a partial layer routing with a warning. Interpreter completion+warnings also become errors before a document is returned. Whitespace and comments at+EOF remain valid. The typed iterator does not classify every malformed operator, so this+is known-incomplete rejection rather than a general PDF validity certificate.++The three patched Hayro crates and Krilla are selected in the root `[patch.crates-io]`+from the same immutable revision as `craft-pdf`. `cargo xtask pdf-deps` rejects missing,+duplicate, local-path, registry and mismatched revisions for those five packages.+`craft-print` and `craft-ui` keep their existing independent revisions.++Dependency asset hashes and sources are in `ASSETS.md`; redistributed license texts are+in `licenses/pdf-backend`. Package staging carries those texts together with `NOTICE`+and `ASSETS.md`. Fonts and profiles remain dependency data; this repository adds no font+or profile binaries. Native page interpretation has a shared unwind guard; WASM aborts+and process-wide allocation failures cannot be caught.+- The app retains the raw PDF-object nesting guard and the imported document-depth cap.- Before recursive operand parsing, decoded page content is checked through the same incremental- reader used by layer scanning and interpretation. Its nesting check carries literal-string,- comment, hexadecimal-string and dictionary-delimiter state across 64 KiB scratch windows;- lowering the ordinary stream-materialization limit still produces the app's specific error for- content nested more than 256 levels. The shared parser separately caps direct containers at- 128 levels: the low-limit regression previously returned an incomplete-content error, so it- demonstrates restored preflight coverage and error classification, not a successful import or- a crash bypass.- Known decoder truncation remains an import error. The scratch bound does not cover whole-filter- fallback decoding or aggregate parser/process memory. Synthetic regressions exercise lowered- ordinary limits, split delimiters and lexical state across content boundaries.++The shared parser retains current main's 64-level cap for direct arrays and dictionaries,++including decoded content and object streams. The application retains its two-pass traversal++of repaired object tables, 16-link function/colour-space cap, 64-level calculator-procedure cap,++256 MiB stream checks and predictor validation. Native interpretation uses the existing++16 MiB stack wrapper, and imported document depth remains bounded.++++Known incomplete decoded content remains an import error, including deeply nested operands++that the bounded parser cannot finish. Lowered ordinary decode limits and dictionary delimiters++split across scan windows are covered by synthetic regressions; they require the typed++incomplete-content error and never return a partial document. The former 256-level lexical++preflight and its diagnostic are superseded by the parser cap and completion checks.++The scratch bound does not cover whole-filter fallback decoding or aggregate parser/process memory.diff --cc docs/roadmap.mdindex 9d704abab,aa9a7f851..7bc516dd6--- a/docs/roadmap.md+++ b/docs/roadmap.md@@@ -1,6 -1,6 +1,6 @@@# Roadmap: milestones and what's next- > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** minor (PDF.R1: shared PDF reader with windowed content scanning and explicit incomplete-content errors; scores and estimates unchanged; PDF.W1: guarded shared PDF writer; output behavior, scores and estimates unchanged; M12 row: Image Trace's enhanced presets; verified PngSuite downloads, #1729; synthetic control-input budgets, #1709; 2026-10-14 merges: anchor Align and Distribute, #1636; Direct Selection and Delete fixes, #1674, #1666, #1743; Expand on repeats, #1756; file and input hardening, #1776–#1783, #1786, #1807; MCP limits and envelope, #1727, #1728; Image Trace #1647, #1657; estimates unchanged; later 2026-10-13 merges: SVG import, #1565, #1596, #1568, #1601; Warp Arc, #1578; Pathfinder strokes, #1570; saves, #1620 in part; OpenType features, #1607; intersect Smart Guides, #1602 in part; estimates unchanged; TIFF is available in Export for Screens and Asset Export with shared format settings; scores and hours unchanged; G1/M11: Artboard deletion and history selection normalization; history regressions and full workspace CI pass; scores and hours unchanged; Character styles retain explicit Auto leading, propagate resets and preserve local leading overrides; scores and hours unchanged; Width Point Edit: Shift-double-click enables adjoining adjustment; plain double-click keeps it off; scores and hours unchanged; per-corner radius fields with a link toggle, split from #1594; control transport deadlines, #1726; M12 row: Image Trace's presets and options as they are now; Polish interface, #1498; compact native saves, #1492; PDF and EPS paste as vector art, #1499; import fixes, #1528, #1530, #1531, #1544, #1551, #1553; guide objects, #1534; Join after Average, #1533; Keyboard Shortcuts, #1539; estimates unchanged; Direct Selection anchor precedence, #1508; dialog slider rails, #1483; template layers in Outline view, #1486; type that does not fit its frame is reported, #1471; 3D on outlined type, #1481; print-size images, #1517; French catalog, #1511; estimates unchanged; Split Into Grid options, #1462; Transform Objects and Reflect's angle, #1448 and #1460; Pathfinder on a group, #1450; unknown parameter keys refused, #1442; grayscale TIFFs with alpha, #1466 in part; estimates unchanged; M9: Extrude & Bevel, Inflate and Rotate; `.ai` compound path paint, #1410, overprint on import, #1388, text-only PDF parts, #1387; Transform dialogs preview, #1412, and transforms of direct-selected anchors, #1408; strokes wider than their shape, #1396; estimates unchanged; `.ai` editing-data follow-ups, #1390, #1391, #1392; dialog keyboard focus, #1367 and #1395; symbol instance redraw cache, #1386; font rescan, #1376; estimates unchanged; gradient shapes import as paths, #1304; white constant alpha masks, #1286 in part; Live Corners widget click, #1239; custom ruler origin, #1212; M11: Artboard object clicks create a fitted artboard (#1227); estimate unchanged; Pathfinder single-result source names and SVG IDs retained, #1293; DXF control-point SPLINE closure read, #1299 follow-up; desktop print transport adopts craft-print, Windows 7 fallback retained, scores unchanged; Czech render-site localization follow-up; scores and estimates unchanged; Document Setup: Edit Artboards closes the modal after applying valid settings; pointer-click regressions; scores and hours unchanged; Artboards: Escape exits editing; an active drag cancels first; shortcut-routing regression; scores and hours unchanged; M6: Simplify preview/counts and valid topology selection (#1272); estimates unchanged; G2: Film Grain added; Photoshop effects 29/57; 28 filters remain; M14: RPM runtime metadata (#1275); estimates unchanged; M5: squared-distance texture redraws (#1257); clean-machine/platform drag measurements still pending; estimates unchanged; M2: Curvature point display improved (#1236, in part); estimates unchanged; M7: full-name font matching (#1258); Windows font-service QA pending; estimates unchanged; M1: no-op anchor Align keeps Undo, Redo and saved state (#1180 follow-up); estimates unchanged; M14: dedicated Eyedropper cursor (#1269); estimates unchanged; M3: Eyedropper reads visible locked and outside-isolation sources (#1251); estimates unchanged; M2: Direct Selection segment picks and Delete (#1278); estimates unchanged; M3: adding paint to an unpainted zero-width stroke restores 1 pt (#1253); estimates unchanged; M12: graph designs, graph data, Graph Type and label options; M14: native macOS save Format menu, #866; M6: compound appearance and member fill-rule fixes, #1197; estimates unchanged; M9: PDF raster-effect cap warnings; G11: #893 fixed, #937 open; M7: accurate character controls after scaling, #1034; estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x)-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** minor (PDF.W1: guarded shared PDF writer; output behavior, scores and estimates unchanged; later 2026-10-14 merges: per-corner radius, #1682; Width Point Edit from the Width tool, #1814, #1630; guides, #1782, #1836; anchor X/Y/W/H, #1824; toolbar and All Tools, #1751; macOS save sheets, #1855; rendering caches, #1667–#1792; untrusted files, #1852, #1862–#1873; failed-save dialog, #1685; Dim Images, #1683; estimates unchanged; M12 row: Image Trace's enhanced presets; verified PngSuite downloads, #1729; synthetic control-input budgets, #1709; 2026-10-14 merges: anchor Align and Distribute, #1636; Direct Selection and Delete fixes, #1674, #1666, #1743; Expand on repeats, #1756; file and input hardening, #1776–#1783, #1786, #1807; MCP limits and envelope, #1727, #1728; Image Trace #1647, #1657; estimates unchanged; later 2026-10-13 merges: SVG import, #1565, #1596, #1568, #1601; Warp Arc, #1578; Pathfinder strokes, #1570; saves, #1620 in part; OpenType features, #1607; intersect Smart Guides, #1602 in part; estimates unchanged; TIFF is available in Export for Screens and Asset Export with shared format settings; scores and hours unchanged; G1/M11: Artboard deletion and history selection normalization; history regressions and full workspace CI pass; scores and hours unchanged; Character styles retain explicit Auto leading, propagate resets and preserve local leading overrides; scores and hours unchanged; Width Point Edit: Shift-double-click enables adjoining adjustment; plain double-click keeps it off; scores and hours unchanged; per-corner radius fields with a link toggle, split from #1594; control transport deadlines, #1726; M12 row: Image Trace's presets and options as they are now; Polish interface, #1498; compact native saves, #1492; PDF and EPS paste as vector art, #1499; import fixes, #1528, #1530, #1531, #1544, #1551, #1553; guide objects, #1534; Join after Average, #1533; Keyboard Shortcuts, #1539; estimates unchanged; Direct Selection anchor precedence, #1508; dialog slider rails, #1483; template layers in Outline view, #1486; type that does not fit its frame is reported, #1471; 3D on outlined type, #1481; print-size images, #1517; French catalog, #1511; estimates unchanged; Split Into Grid options, #1462; Transform Objects and Reflect's angle, #1448 and #1460; Pathfinder on a group, #1450; unknown parameter keys refused, #1442; grayscale TIFFs with alpha, #1466 in part; estimates unchanged; M9: Extrude & Bevel, Inflate and Rotate; `.ai` compound path paint, #1410, overprint on import, #1388, text-only PDF parts, #1387; Transform dialogs preview, #1412, and transforms of direct-selected anchors, #1408; strokes wider than their shape, #1396; estimates unchanged; `.ai` editing-data follow-ups, #1390, #1391, #1392; dialog keyboard focus, #1367 and #1395; symbol instance redraw cache, #1386; font rescan, #1376; estimates unchanged; gradient shapes import as paths, #1304; white constant alpha masks, #1286 in part; Live Corners widget click, #1239; custom ruler origin, #1212; M11: Artboard object clicks create a fitted artboard (#1227); estimate unchanged; Pathfinder single-result source names and SVG IDs retained, #1293; DXF control-point SPLINE closure read, #1299 follow-up; desktop print transport adopts craft-print, Windows 7 fallback retained, scores unchanged; Czech render-site localization follow-up; scores and estimates unchanged; Document Setup: Edit Artboards closes the modal after applying valid settings; pointer-click regressions; scores and hours unchanged; Artboards: Escape exits editing; an active drag cancels first; shortcut-routing regression; scores and hours unchanged; M6: Simplify preview/counts and valid topology selection (#1272); estimates unchanged; G2: Film Grain added; Photoshop effects 29/57; 28 filters remain; M14: RPM runtime metadata (#1275); estimates unchanged; M5: squared-distance texture redraws (#1257); clean-machine/platform drag measurements still pending; estimates unchanged; M2: Curvature point display improved (#1236, in part); estimates unchanged; M7: full-name font matching (#1258); Windows font-service QA pending; estimates unchanged; M1: no-op anchor Align keeps Undo, Redo and saved state (#1180 follow-up); estimates unchanged; M14: dedicated Eyedropper cursor (#1269); estimates unchanged; M3: Eyedropper reads visible locked and outside-isolation sources (#1251); estimates unchanged; M2: Direct Selection segment picks and Delete (#1278); estimates unchanged; M3: adding paint to an unpainted zero-width stroke restores 1 pt (#1253); estimates unchanged; M12: graph designs, graph data, Graph Type and label options; M14: native macOS save Format menu, #866; M6: compound appearance and member fill-rule fixes, #1197; estimates unchanged; M9: PDF raster-effect cap warnings; G11: #893 fixed, #937 open; M7: accurate character controls after scaling, #1034; estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x)++> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** minor (PDF.R1: shared PDF reader with windowed content scanning and explicit incomplete-content errors; scores and estimates unchanged; PDF.W1: guarded shared PDF writer; output behavior, scores and estimates unchanged; later 2026-10-14 merges: per-corner radius, #1682; Width Point Edit from the Width tool, #1814, #1630; guides, #1782, #1836; anchor X/Y/W/H, #1824; toolbar and All Tools, #1751; macOS save sheets, #1855; rendering caches, #1667–#1792; untrusted files, #1852, #1862–#1873; failed-save dialog, #1685; Dim Images, #1683; estimates unchanged; M12 row: Image Trace's enhanced presets; verified PngSuite downloads, #1729; synthetic control-input budgets, #1709; 2026-10-14 merges: anchor Align and Distribute, #1636; Direct Selection and Delete fixes, #1674, #1666, #1743; Expand on repeats, #1756; file and input hardening, #1776–#1783, #1786, #1807; MCP limits and envelope, #1727, #1728; Image Trace #1647, #1657; estimates unchanged; later 2026-10-13 merges: SVG import, #1565, #1596, #1568, #1601; Warp Arc, #1578; Pathfinder strokes, #1570; saves, #1620 in part; OpenType features, #1607; intersect Smart Guides, #1602 in part; estimates unchanged; TIFF is available in Export for Screens and Asset Export with shared format settings; scores and hours unchanged; G1/M11: Artboard deletion and history selection normalization; history regressions and full workspace CI pass; scores and hours unchanged; Character styles retain explicit Auto leading, propagate resets and preserve local leading overrides; scores and hours unchanged; Width Point Edit: Shift-double-click enables adjoining adjustment; plain double-click keeps it off; scores and hours unchanged; per-corner radius fields with a link toggle, split from #1594; control transport deadlines, #1726; M12 row: Image Trace's presets and options as they are now; Polish interface, #1498; compact native saves, #1492; PDF and EPS paste as vector art, #1499; import fixes, #1528, #1530, #1531, #1544, #1551, #1553; guide objects, #1534; Join after Average, #1533; Keyboard Shortcuts, #1539; estimates unchanged; Direct Selection anchor precedence, #1508; dialog slider rails, #1483; template layers in Outline view, #1486; type that does not fit its frame is reported, #1471; 3D on outlined type, #1481; print-size images, #1517; French catalog, #1511; estimates unchanged; Split Into Grid options, #1462; Transform Objects and Reflect's angle, #1448 and #1460; Pathfinder on a group, #1450; unknown parameter keys refused, #1442; grayscale TIFFs with alpha, #1466 in part; estimates unchanged; M9: Extrude & Bevel, Inflate and Rotate; `.ai` compound path paint, #1410, overprint on import, #1388, text-only PDF parts, #1387; Transform dialogs preview, #1412, and transforms of direct-selected anchors, #1408; strokes wider than their shape, #1396; estimates unchanged; `.ai` editing-data follow-ups, #1390, #1391, #1392; dialog keyboard focus, #1367 and #1395; symbol instance redraw cache, #1386; font rescan, #1376; estimates unchanged; gradient shapes import as paths, #1304; white constant alpha masks, #1286 in part; Live Corners widget click, #1239; custom ruler origin, #1212; M11: Artboard object clicks create a fitted artboard (#1227); estimate unchanged; Pathfinder single-result source names and SVG IDs retained, #1293; DXF control-point SPLINE closure read, #1299 follow-up; desktop print transport adopts craft-print, Windows 7 fallback retained, scores unchanged; Czech render-site localization follow-up; scores and estimates unchanged; Document Setup: Edit Artboards closes the modal after applying valid settings; pointer-click regressions; scores and hours unchanged; Artboards: Escape exits editing; an active drag cancels first; shortcut-routing regression; scores and hours unchanged; M6: Simplify preview/counts and valid topology selection (#1272); estimates unchanged; G2: Film Grain added; Photoshop effects 29/57; 28 filters remain; M14: RPM runtime metadata (#1275); estimates unchanged; M5: squared-distance texture redraws (#1257); clean-machine/platform drag measurements still pending; estimates unchanged; M2: Curvature point display improved (#1236, in part); estimates unchanged; M7: full-name font matching (#1258); Windows font-service QA pending; estimates unchanged; M1: no-op anchor Align keeps Undo, Redo and saved state (#1180 follow-up); estimates unchanged; M14: dedicated Eyedropper cursor (#1269); estimates unchanged; M3: Eyedropper reads visible locked and outside-isolation sources (#1251); estimates unchanged; M2: Direct Selection segment picks and Delete (#1278); estimates unchanged; M3: adding paint to an unpainted zero-width stroke restores 1 pt (#1253); estimates unchanged; M12: graph designs, graph data, Graph Type and label options; M14: native macOS save Format menu, #866; M6: compound appearance and member fill-rule fixes, #1197; estimates unchanged; M9: PDF raster-effect cap warnings; G11: #893 fixed, #937 open; M7: accurate character controls after scaling, #1034; estimates unchanged) · **Target:** Adobe Illustrator 2026 (30.x)Forward-looking plan. Where VectorCraft stands is in [`ROADMAP.md`](../ROADMAP.md) and[target-app-parity.md](target-app-parity.md); the ranked work list is [gaps.md](gaps.md). Hours are Opus 5.5diff --cc docs/target-app-parity.mdindex f98c50d18,7e02b66bc..06f0bd127--- a/docs/target-app-parity.md+++ b/docs/target-app-parity.md@@@ -1,6 -1,6 +1,6 @@@# Parity with Adobe Illustrator- > **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** minor (PDF.R1: shared PDF reader with windowed content scanning and explicit incomplete-content errors; scores and estimates unchanged; PDF.W1: guarded shared PDF writer; output behavior, scores and estimates unchanged; Image Trace: Shapes rework, stroke caps, enhanced presets, gradients over noise, measured in `image-trace-quality.md`, score unchanged; verified PngSuite downloads, #1729; synthetic control-input budgets, #1709; 2026-10-14 merges: anchor Align and Distribute, #1636; Direct Selection and Delete fixes, #1674, #1666, #1743; Escape while typing, #1686; Pen clicks, #1663; Expand on repeats, #1756; Roughen and Scribble, #1643, #1648; file and input hardening, #1776–#1783, #1786, #1807; MCP limits and envelope, #1727, #1728; Image Trace levelling and Flat Logo on scans, #1647, #1657; scores unchanged; later 2026-10-13 merges: SVG import, #1565, #1596, #1568, #1598, #1601; type on a path from PDF and `.ai`, #1585, #1586; ICC tag alignment, #1584; saves, #1620 in part; Warp Arc, #1578; Zig Zag, #1558; Pathfinder strokes, #1570; OpenType features, #1607; intersect Smart Guides, #1602 in part; a guide's position in the Transform panel, #1597 in part, a convenience with no parity claim; scores unchanged; TIFF is available in Export for Screens and Asset Export with shared format settings; scores and hours unchanged; G1/M11: Artboard deletion and history selection normalization; history regressions and full workspace CI pass; scores and hours unchanged; Character styles retain explicit Auto leading, propagate resets and preserve local leading overrides; scores and hours unchanged; Width Point Edit: Shift-double-click enables adjoining adjustment; plain double-click keeps it off; scores and hours unchanged; Units › Identify Objects By (`identifyObjectsBy`) acts on Layers, Variables and Layer Options, #394, scores unchanged; Appearance of Black › Printing / Exporting (`blackOutput`) acts on RGB raster export and Print as Bitmap, #394, scores unchanged; per-corner radius fields with a link toggle, split from #1594; control transport deadlines, #1726; Color panel: the mode picked last comes back after a restart, #1675; Image Trace: shared edges, memory, thin lines, strokes, corners, and the Shapes, Auto Grouping and Gradients options, measured in `image-trace-quality.md`, score unchanged; 2026-10-13 merges: Polish interface, #1498; compact native saves, #1492; PDF and EPS paste as vector art, #1499; import fixes for `.ai`, PDF, EPS and SVG, #1528, #1530, #1531, #1544, #1551, #1553; guide objects, #1534; Join after Average, #1533; Keyboard Shortcuts lists commands outside the menus, #1539; correction: Average and Join with a corner or smooth choice is missing; scores unchanged; late 2026-10-12 merges: type that does not fit its frame is reported, #1471; Tabs panel drags, #1458; template layers in Outline view, #1486; dialog slider rails, #1483; Direct Selection anchor precedence, #1508; print-size images, #1517; 3D on outlined type, #1481; French catalog, #1511; scores unchanged; Split Into Grid options, #1462; Transform Objects and Reflect across an angle, #1448 and #1460; Pathfinder panel on a group, #1450; unknown parameter keys refused, #1442; grayscale TIFFs with alpha, #1466 in part; Localization: Vietnamese catalog added, 63% → 71%, hours 60–100 → 55–90, full readiness unchanged at ~62%; scores and hours unchanged; Image Trace places edges to a fraction of a pixel in every mode, measured in `image-trace-quality.md`, score unchanged; 3D and Materials: Extrude & Bevel, Inflate and Rotate added, 3D ~8% → ~25% (estimated), menu stubs 25 → 22; Affinity text frames too short for their first line show it, #1423; Transform dialogs preview, #1412, and the transform tools and commands act on direct-selected anchors, #1408; `.ai` compound path paint, #1410; strokes wider than their shape, #1396; corner drags hide the bounding box, #1229; scores and hours unchanged; PDF and `.ai` import keep overprint, #1388, scores unchanged; `.ai` editing-data follow-ups: gradient stops, type of objects with an appearance, short area-type frames (#1390, #1391, #1392); dialog keyboard focus on every open (#1382, #1395); art flush with an artboard (#1375); font rescan (#1376); symbol instance redraw cache (#1386); scores and hours unchanged; grid tool options, #1377 in part, scores unchanged; `.ai` placed (linked) files read from the editing data, #1264, scores unchanged; gradient shapes import as paths, #1304; white constant alpha masks, #1286 in part; Live Corners widget click selects its corner, #1239; scores and hours unchanged; custom ruler origin, #1212; Artboard click-to-fit verified for objects, groups, visible bounds, undo and cancellation (#1227); scores and hours unchanged; Pathfinder single-result source names and SVG IDs retained, #1293; Localization: Korean catalog added, 54% → 63%, full readiness unchanged at ~62%; desktop print transport adopts craft-print, Windows 7 fallback retained, scores unchanged; Image Trace: an image over 64 megapixels traces scaled down instead of being refused, scores unchanged; Czech render-site localization follow-up; scores and estimates unchanged; Document Setup: Edit Artboards closes the modal after applying valid settings; pointer-click regressions; scores and hours unchanged; Artboards: Escape exits editing; an active drag cancels first; shortcut-routing regression; scores and hours unchanged; Path operations: Simplify preview/counts and component selection (#1272); scores unchanged; G2: Film Grain added; Photoshop effects 29/57; 28 filters remain; Platforms: RPM runtime capabilities and glibc floor (#1275); scores unchanged; Raster effects: squared-distance texture redraws (#1257); pixels unchanged; scores and hours unchanged; Drawing: Curvature point display improved (#1236, in part); scores unchanged; Type core: full-name font matching (#1258), scores and hours unchanged; Selection: no-op anchor Align preserves history and saved state (#1180 follow-up); scores unchanged; UI chrome: Eyedropper cursor and precise-setting regressions (#1269); scores unchanged; Colour: Eyedropper reads visible locked and outside-isolation sources (#1251); scores and hours unchanged; Selection: segment click/Delete preserves neighboring edges (#1278); scores unchanged; Colour: unpainted zero-width strokes regain 1 pt when painted (#1253); scores and hours unchanged; graphs: designs and markers, data, Graph Type and label options; UI chrome: native macOS save Format menu, #866, scores unchanged; compound paths inherit the backmost appearance and member fill-rule edits reach their owner, #1197; scores unchanged; Type core: Middle Eastern digit types done, Character panel menu › Digits; PDF export warns when the pixel cap lowers raster-effect resolution; Drawing tools: Live Corners round corners between curved sides, #1144; Type advanced: proportional vertical metrics (`vpal`) done, #966; Shape Builder: #893 fixed, merged regions of crossing lines no longer keep seams; scores unchanged while #937 is open; #1034: document-point character controls after object/group scaling; full readiness recomputed as the standard's additive weighted sum, ~62%; per-audience hours; essentials-user score ~75% added; ready-for-real-work re-examined: 50% → 55%, mainstream 65% added; earlier the same day: full re-measure against Illustrator 2026 30.x; merged the ROADMAP's parity estimate, honest assessment and "Shipped so far" into this file; SVG knockout groups of opaque art export without masks; Image Trace: colour presets no longer shatter noisy flat art and photos trace into smooth tones, measured in `image-trace-quality.md`, score unchanged; Split Into Grid options, #1462; Transform Objects and Reflect across an angle, #1448 and #1460; Pathfinder panel on a group, #1450; unknown parameter keys refused, #1442; grayscale TIFFs with alpha, #1466 in part; scores and hours unchanged; Image Trace places edges to a fraction of a pixel in every mode, measured in `image-trace-quality.md`, score unchanged; 3D and Materials: Extrude & Bevel, Inflate and Rotate added, 3D ~8% → ~25% (estimated), menu stubs 25 → 22; Affinity text frames too short for their first line show it, #1423; Transform dialogs preview, #1412, and the transform tools and commands act on direct-selected anchors, #1408; `.ai` compound path paint, #1410; strokes wider than their shape, #1396; corner drags hide the bounding box, #1229; scores and hours unchanged; PDF and `.ai` import keep overprint, #1388, scores unchanged; `.ai` editing-data follow-ups: gradient stops, type of objects with an appearance, short area-type frames (#1390, #1391, #1392); dialog keyboard focus on every open (#1382, #1395); art flush with an artboard (#1375); font rescan (#1376); symbol instance redraw cache (#1386); scores and hours unchanged; grid tool options, #1377 in part, scores unchanged; `.ai` placed (linked) files read from the editing data, #1264, scores unchanged; gradient shapes import as paths, #1304; white constant alpha masks, #1286 in part; Live Corners widget click selects its corner, #1239; scores and hours unchanged; custom ruler origin, #1212; Artboard click-to-fit verified for objects, groups, visible bounds, undo and cancellation (#1227); scores and hours unchanged; Pathfinder single-result source names and SVG IDs retained, #1293; Localization: Korean catalog added, 54% → 63%, full readiness unchanged at ~62%; desktop print transport adopts craft-print, Windows 7 fallback retained, scores unchanged; Image Trace: an image over 64 megapixels traces scaled down instead of being refused, scores unchanged; Czech render-site localization follow-up; scores and estimates unchanged; Document Setup: Edit Artboards closes the modal after applying valid settings; pointer-click regressions; scores and hours unchanged; Artboards: Escape exits editing; an active drag cancels first; shortcut-routing regression; scores and hours unchanged; Path operations: Simplify preview/counts and component selection (#1272); scores unchanged; G2: Film Grain added; Photoshop effects 29/57; 28 filters remain; Platforms: RPM runtime capabilities and glibc floor (#1275); scores unchanged; Raster effects: squared-distance texture redraws (#1257); pixels unchanged; scores and hours unchanged; Drawing: Curvature point display improved (#1236, in part); scores unchanged; Type core: full-name font matching (#1258), scores and hours unchanged; Selection: no-op anchor Align preserves history and saved state (#1180 follow-up); scores unchanged; UI chrome: Eyedropper cursor and precise-setting regressions (#1269); scores unchanged; Colour: Eyedropper reads visible locked and outside-isolation sources (#1251); scores and hours unchanged; Selection: segment click/Delete preserves neighboring edges (#1278); scores unchanged; Colour: unpainted zero-width strokes regain 1 pt when painted (#1253); scores and hours unchanged; graphs: designs and markers, data, Graph Type and label options; UI chrome: native macOS save Format menu, #866, scores unchanged; compound paths inherit the backmost appearance and member fill-rule edits reach their owner, #1197; scores unchanged; Type core: Middle Eastern digit types done, Character panel menu › Digits; PDF export warns when the pixel cap lowers raster-effect resolution; Drawing tools: Live Corners round corners between curved sides, #1144; Type advanced: proportional vertical metrics (`vpal`) done, #966; Shape Builder: #893 fixed, merged regions of crossing lines no longer keep seams; scores unchanged while #937 is open; #1034: document-point character controls after object/group scaling; full readiness recomputed as the standard's additive weighted sum, ~62%; per-audience hours; essentials-user score ~75% added; ready-for-real-work re-examined: 50% → 55%, mainstream 65% added; earlier the same day: full re-measure against Illustrator 2026 30.x; merged the ROADMAP's parity estimate, honest assessment and "Shipped so far" into this file; SVG knockout groups of opaque art export without masks) · **Target:** Adobe Illustrator 2026 (30.x; public release notes through 30.7, August 2026)-> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** minor (PDF.W1: guarded shared PDF writer; output behavior, scores and estimates unchanged; later 2026-10-14 merges: anchor X/Y/W/H, #1824; Snap to Grid over Snap to Pixel, #1816; toolbar and All Tools, #1751; Actions panel selection, #1629 in part; redo during a drag, #1719; preferences written on OK, #1747; type in symbols after reopening, #1738; macOS save sheets, #1855, the Format menu withdrawn; stroke outlines shared, #1667; untrusted files, #1852, #1862–#1873; failed-save dialog, #1685; effects, #1864, Dim Images, #1683; duplicated rows of the 2026-10-05 table noted for the owner; scores unchanged; Image Trace: Shapes rework, stroke caps, enhanced presets, gradients over noise, measured in `image-trace-quality.md`, score unchanged; verified PngSuite downloads, #1729; synthetic control-input budgets, #1709; 2026-10-14 merges: anchor Align and Distribute, #1636; Direct Selection and Delete fixes, #1674, #1666, #1743; Escape while typing, #1686; Pen clicks, #1663; Expand on repeats, #1756; Roughen and Scribble, #1643, #1648; file and input hardening, #1776–#1783, #1786, #1807; MCP limits and envelope, #1727, #1728; Image Trace levelling and Flat Logo on scans, #1647, #1657; scores unchanged; later 2026-10-13 merges: SVG import, #1565, #1596, #1568, #1598, #1601; type on a path from PDF and `.ai`, #1585, #1586; ICC tag alignment, #1584; saves, #1620 in part; Warp Arc, #1578; Zig Zag, #1558; Pathfinder strokes, #1570; OpenType features, #1607; intersect Smart Guides, #1602 in part; a guide's position in the Transform panel, #1597 in part, a convenience with no parity claim; scores unchanged; TIFF is available in Export for Screens and Asset Export with shared format settings; scores and hours unchanged; G1/M11: Artboard deletion and history selection normalization; history regressions and full workspace CI pass; scores and hours unchanged; Character styles retain explicit Auto leading, propagate resets and preserve local leading overrides; scores and hours unchanged; Width Point Edit: Shift-double-click enables adjoining adjustment; plain double-click keeps it off; scores and hours unchanged; Units › Identify Objects By (`identifyObjectsBy`) acts on Layers, Variables and Layer Options, #394, scores unchanged; Appearance of Black › Printing / Exporting (`blackOutput`) acts on RGB raster export and Print as Bitmap, #394, scores unchanged; per-corner radius fields with a link toggle, split from #1594; control transport deadlines, #1726; Color panel: the mode picked last comes back after a restart, #1675; Image Trace: shared edges, memory, thin lines, strokes, corners, and the Shapes, Auto Grouping and Gradients options, measured in `image-trace-quality.md`, score unchanged; 2026-10-13 merges: Polish interface, #1498; compact native saves, #1492; PDF and EPS paste as vector art, #1499; import fixes for `.ai`, PDF, EPS and SVG, #1528, #1530, #1531, #1544, #1551, #1553; guide objects, #1534; Join after Average, #1533; Keyboard Shortcuts lists commands outside the menus, #1539; correction: Average and Join with a corner or smooth choice is missing; scores unchanged; late 2026-10-12 merges: type that does not fit its frame is reported, #1471; Tabs panel drags, #1458; template layers in Outline view, #1486; dialog slider rails, #1483; Direct Selection anchor precedence, #1508; print-size images, #1517; 3D on outlined type, #1481; French catalog, #1511; scores unchanged; Split Into Grid options, #1462; Transform Objects and Reflect across an angle, #1448 and #1460; Pathfinder panel on a group, #1450; unknown parameter keys refused, #1442; grayscale TIFFs with alpha, #1466 in part; Localization: Vietnamese catalog added, 63% → 71%, hours 60–100 → 55–90, full readiness unchanged at ~62%; scores and hours unchanged; Image Trace places edges to a fraction of a pixel in every mode, measured in `image-trace-quality.md`, score unchanged; 3D and Materials: Extrude & Bevel, Inflate and Rotate added, 3D ~8% → ~25% (estimated), menu stubs 25 → 22; Affinity text frames too short for their first line show it, #1423; Transform dialogs preview, #1412, and the transform tools and commands act on direct-selected anchors, #1408; `.ai` compound path paint, #1410; strokes wider than their shape, #1396; corner drags hide the bounding box, #1229; scores and hours unchanged; PDF and `.ai` import keep overprint, #1388, scores unchanged; `.ai` editing-data follow-ups: gradient stops, type of objects with an appearance, short area-type frames (#1390, #1391, #1392); dialog keyboard focus on every open (#1382, #1395); art flush with an artboard (#1375); font rescan (#1376); symbol instance redraw cache (#1386); scores and hours unchanged; grid tool options, #1377 in part, scores unchanged; `.ai` placed (linked) files read from the editing data, #1264, scores unchanged; gradient shapes import as paths, #1304; white constant alpha masks, #1286 in part; Live Corners widget click selects its corner, #1239; scores and hours unchanged; custom ruler origin, #1212; Artboard click-to-fit verified for objects, groups, visible bounds, undo and cancellation (#1227); scores and hours unchanged; Pathfinder single-result source names and SVG IDs retained, #1293; Localization: Korean catalog added, 54% → 63%, full readiness unchanged at ~62%; desktop print transport adopts craft-print, Windows 7 fallback retained, scores unchanged; Image Trace: an image over 64 megapixels traces scaled down instead of being refused, scores unchanged; Czech render-site localization follow-up; scores and estimates unchanged; Document Setup: Edit Artboards closes the modal after applying valid settings; pointer-click regressions; scores and hours unchanged; Artboards: Escape exits editing; an active drag cancels first; shortcut-routing regression; scores and hours unchanged; Path operations: Simplify preview/counts and component selection (#1272); scores unchanged; G2: Film Grain added; Photoshop effects 29/57; 28 filters remain; Platforms: RPM runtime capabilities and glibc floor (#1275); scores unchanged; Raster effects: squared-distance texture redraws (#1257); pixels unchanged; scores and hours unchanged; Drawing: Curvature point display improved (#1236, in part); scores unchanged; Type core: full-name font matching (#1258), scores and hours unchanged; Selection: no-op anchor Align preserves history and saved state (#1180 follow-up); scores unchanged; UI chrome: Eyedropper cursor and precise-setting regressions (#1269); scores unchanged; Colour: Eyedropper reads visible locked and outside-isolation sources (#1251); scores and hours unchanged; Selection: segment click/Delete preserves neighboring edges (#1278); scores unchanged; Colour: unpainted zero-width strokes regain 1 pt when painted (#1253); scores and hours unchanged; graphs: designs and markers, data, Graph Type and label options; UI chrome: native macOS save Format menu, #866, scores unchanged; compound paths inherit the backmost appearance and member fill-rule edits reach their owner, #1197; scores unchanged; Type core: Middle Eastern digit types done, Character panel menu › Digits; PDF export warns when the pixel cap lowers raster-effect resolution; Drawing tools: Live Corners round corners between curved sides, #1144; Type advanced: proportional vertical metrics (`vpal`) done, #966; Shape Builder: #893 fixed, merged regions of crossing lines no longer keep seams; scores unchanged while #937 is open; #1034: document-point character controls after object/group scaling; full readiness recomputed as the standard's additive weighted sum, ~62%; per-audience hours; essentials-user score ~75% added; ready-for-real-work re-examined: 50% → 55%, mainstream 65% added; earlier the same day: full re-measure against Illustrator 2026 30.x; merged the ROADMAP's parity estimate, honest assessment and "Shipped so far" into this file; SVG knockout groups of opaque art export without masks; Image Trace: colour presets no longer shatter noisy flat art and photos trace into smooth tones, measured in `image-trace-quality.md`, score unchanged; Split Into Grid options, #1462; Transform Objects and Reflect across an angle, #1448 and #1460; Pathfinder panel on a group, #1450; unknown parameter keys refused, #1442; grayscale TIFFs with alpha, #1466 in part; scores and hours unchanged; Image Trace places edges to a fraction of a pixel in every mode, measured in `image-trace-quality.md`, score unchanged; 3D and Materials: Extrude & Bevel, Inflate and Rotate added, 3D ~8% → ~25% (estimated), menu stubs 25 → 22; Affinity text frames too short for their first line show it, #1423; Transform dialogs preview, #1412, and the transform tools and commands act on direct-selected anchors, #1408; `.ai` compound path paint, #1410; strokes wider than their shape, #1396; corner drags hide the bounding box, #1229; scores and hours unchanged; PDF and `.ai` import keep overprint, #1388, scores unchanged; `.ai` editing-data follow-ups: gradient stops, type of objects with an appearance, short area-type frames (#1390, #1391, #1392); dialog keyboard focus on every open (#1382, #1395); art flush with an artboard (#1375); font rescan (#1376); symbol instance redraw cache (#1386); scores and hours unchanged; grid tool options, #1377 in part, scores unchanged; `.ai` placed (linked) files read from the editing data, #1264, scores unchanged; gradient shapes import as paths, #1304; white constant alpha masks, #1286 in part; Live Corners widget click selects its corner, #1239; scores and hours unchanged; custom ruler origin, #1212; Artboard click-to-fit verified for objects, groups, visible bounds, undo and cancellation (#1227); scores and hours unchanged; Pathfinder single-result source names and SVG IDs retained, #1293; Localization: Korean catalog added, 54% → 63%, full readiness unchanged at ~62%; desktop print transport adopts craft-print, Windows 7 fallback retained, scores unchanged; Image Trace: an image over 64 megapixels traces scaled down instead of being refused, scores unchanged; Czech render-site localization follow-up; scores and estimates unchanged; Document Setup: Edit Artboards closes the modal after applying valid settings; pointer-click regressions; scores and hours unchanged; Artboards: Escape exits editing; an active drag cancels first; shortcut-routing regression; scores and hours unchanged; Path operations: Simplify preview/counts and component selection (#1272); scores unchanged; G2: Film Grain added; Photoshop effects 29/57; 28 filters remain; Platforms: RPM runtime capabilities and glibc floor (#1275); scores unchanged; Raster effects: squared-distance texture redraws (#1257); pixels unchanged; scores and hours unchanged; Drawing: Curvature point display improved (#1236, in part); scores unchanged; Type core: full-name font matching (#1258), scores and hours unchanged; Selection: no-op anchor Align preserves history and saved state (#1180 follow-up); scores unchanged; UI chrome: Eyedropper cursor and precise-setting regressions (#1269); scores unchanged; Colour: Eyedropper reads visible locked and outside-isolation sources (#1251); scores and hours unchanged; Selection: segment click/Delete preserves neighboring edges (#1278); scores unchanged; Colour: unpainted zero-width strokes regain 1 pt when painted (#1253); scores and hours unchanged; graphs: designs and markers, data, Graph Type and label options; UI chrome: native macOS save Format menu, #866, scores unchanged; compound paths inherit the backmost appearance and member fill-rule edits reach their owner, #1197; scores unchanged; Type core: Middle Eastern digit types done, Character panel menu › Digits; PDF export warns when the pixel cap lowers raster-effect resolution; Drawing tools: Live Corners round corners between curved sides, #1144; Type advanced: proportional vertical metrics (`vpal`) done, #966; Shape Builder: #893 fixed, merged regions of crossing lines no longer keep seams; scores unchanged while #937 is open; #1034: document-point character controls after object/group scaling; full readiness recomputed as the standard's additive weighted sum, ~62%; per-audience hours; essentials-user score ~75% added; ready-for-real-work re-examined: 50% → 55%, mainstream 65% added; earlier the same day: full re-measure against Illustrator 2026 30.x; merged the ROADMAP's parity estimate, honest assessment and "Shipped so far" into this file; SVG knockout groups of opaque art export without masks) · **Target:** Adobe Illustrator 2026 (30.x; public release notes through 30.7, August 2026)++> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-14 · **Change:** minor (PDF.R1: shared PDF reader with windowed content scanning and explicit incomplete-content errors; scores and estimates unchanged; PDF.W1: guarded shared PDF writer; output behavior, scores and estimates unchanged; later 2026-10-14 merges: anchor X/Y/W/H, #1824; Snap to Grid over Snap to Pixel, #1816; toolbar and All Tools, #1751; Actions panel selection, #1629 in part; redo during a drag, #1719; preferences written on OK, #1747; type in symbols after reopening, #1738; macOS save sheets, #1855, the Format menu withdrawn; stroke outlines shared, #1667; untrusted files, #1852, #1862–#1873; failed-save dialog, #1685; effects, #1864, Dim Images, #1683; duplicated rows of the 2026-10-05 table noted for the owner; scores unchanged; Image Trace: Shapes rework, stroke caps, enhanced presets, gradients over noise, measured in `image-trace-quality.md`, score unchanged; verified PngSuite downloads, #1729; synthetic control-input budgets, #1709; 2026-10-14 merges: anchor Align and Distribute, #1636; Direct Selection and Delete fixes, #1674, #1666, #1743; Escape while typing, #1686; Pen clicks, #1663; Expand on repeats, #1756; Roughen and Scribble, #1643, #1648; file and input hardening, #1776–#1783, #1786, #1807; MCP limits and envelope, #1727, #1728; Image Trace levelling and Flat Logo on scans, #1647, #1657; scores unchanged; later 2026-10-13 merges: SVG import, #1565, #1596, #1568, #1598, #1601; type on a path from PDF and `.ai`, #1585, #1586; ICC tag alignment, #1584; saves, #1620 in part; Warp Arc, #1578; Zig Zag, #1558; Pathfinder strokes, #1570; OpenType features, #1607; intersect Smart Guides, #1602 in part; a guide's position in the Transform panel, #1597 in part, a convenience with no parity claim; scores unchanged; TIFF is available in Export for Screens and Asset Export with shared format settings; scores and hours unchanged; G1/M11: Artboard deletion and history selection normalization; history regressions and full workspace CI pass; scores and hours unchanged; Character styles retain explicit Auto leading, propagate resets and preserve local leading overrides; scores and hours unchanged; Width Point Edit: Shift-double-click enables adjoining adjustment; plain double-click keeps it off; scores and hours unchanged; Units › Identify Objects By (`identifyObjectsBy`) acts on Layers, Variables and Layer Options, #394, scores unchanged; Appearance of Black › Printing / Exporting (`blackOutput`) acts on RGB raster export and Print as Bitmap, #394, scores unchanged; per-corner radius fields with a link toggle, split from #1594; control transport deadlines, #1726; Color panel: the mode picked last comes back after a restart, #1675; Image Trace: shared edges, memory, thin lines, strokes, corners, and the Shapes, Auto Grouping and Gradients options, measured in `image-trace-quality.md`, score unchanged; 2026-10-13 merges: Polish interface, #1498; compact native saves, #1492; PDF and EPS paste as vector art, #1499; import fixes for `.ai`, PDF, EPS and SVG, #1528, #1530, #1531, #1544, #1551, #1553; guide objects, #1534; Join after Average, #1533; Keyboard Shortcuts lists commands outside the menus, #1539; correction: Average and Join with a corner or smooth choice is missing; scores unchanged; late 2026-10-12 merges: type that does not fit its frame is reported, #1471; Tabs panel drags, #1458; template layers in Outline view, #1486; dialog slider rails, #1483; Direct Selection anchor precedence, #1508; print-size images, #1517; 3D on outlined type, #1481; French catalog, #1511; scores unchanged; Split Into Grid options, #1462; Transform Objects and Reflect across an angle, #1448 and #1460; Pathfinder panel on a group, #1450; unknown parameter keys refused, #1442; grayscale TIFFs with alpha, #1466 in part; Localization: Vietnamese catalog added, 63% → 71%, hours 60–100 → 55–90, full readiness unchanged at ~62%; scores and hours unchanged; Image Trace places edges to a fraction of a pixel in every mode, measured in `image-trace-quality.md`, score unchanged; 3D and Materials: Extrude & Bevel, Inflate and Rotate added, 3D ~8% → ~25% (estimated), menu stubs 25 → 22; Affinity text frames too short for their first line show it, #1423; Transform dialogs preview, #1412, and the transform tools and commands act on direct-selected anchors, #1408; `.ai` compound path paint, #1410; strokes wider than their shape, #1396; corner drags hide the bounding box, #1229; scores and hours unchanged; PDF and `.ai` import keep overprint, #1388, scores unchanged; `.ai` editing-data follow-ups: gradient stops, type of objects with an appearance, short area-type frames (#1390, #1391, #1392); dialog keyboard focus on every open (#1382, #1395); art flush with an artboard (#1375); font rescan (#1376); symbol instance redraw cache (#1386); scores and hours unchanged; grid tool options, #1377 in part, scores unchanged; `.ai` placed (linked) files read from the editing data, #1264, scores unchanged; gradient shapes import as paths, #1304; white constant alpha masks, #1286 in part; Live Corners widget click selects its corner, #1239; scores and hours unchanged; custom ruler origin, #1212; Artboard click-to-fit verified for objects, groups, visible bounds, undo and cancellation (#1227); scores and hours unchanged; Pathfinder single-result source names and SVG IDs retained, #1293; Localization: Korean catalog added, 54% → 63%, full readiness unchanged at ~62%; desktop print transport adopts craft-print, Windows 7 fallback retained, scores unchanged; Image Trace: an image over 64 megapixels traces scaled down instead of being refused, scores unchanged; Czech render-site localization follow-up; scores and estimates unchanged; Document Setup: Edit Artboards closes the modal after applying valid settings; pointer-click regressions; scores and hours unchanged; Artboards: Escape exits editing; an active drag cancels first; shortcut-routing regression; scores and hours unchanged; Path operations: Simplify preview/counts and component selection (#1272); scores unchanged; G2: Film Grain added; Photoshop effects 29/57; 28 filters remain; Platforms: RPM runtime capabilities and glibc floor (#1275); scores unchanged; Raster effects: squared-distance texture redraws (#1257); pixels unchanged; scores and hours unchanged; Drawing: Curvature point display improved (#1236, in part); scores unchanged; Type core: full-name font matching (#1258), scores and hours unchanged; Selection: no-op anchor Align preserves history and saved state (#1180 follow-up); scores unchanged; UI chrome: Eyedropper cursor and precise-setting regressions (#1269); scores unchanged; Colour: Eyedropper reads visible locked and outside-isolation sources (#1251); scores and hours unchanged; Selection: segment click/Delete preserves neighboring edges (#1278); scores unchanged; Colour: unpainted zero-width strokes regain 1 pt when painted (#1253); scores and hours unchanged; graphs: designs and markers, data, Graph Type and label options; UI chrome: native macOS save Format menu, #866, scores unchanged; compound paths inherit the backmost appearance and member fill-rule edits reach their owner, #1197; scores unchanged; Type core: Middle Eastern digit types done, Character panel menu › Digits; PDF export warns when the pixel cap lowers raster-effect resolution; Drawing tools: Live Corners round corners between curved sides, #1144; Type advanced: proportional vertical metrics (`vpal`) done, #966; Shape Builder: #893 fixed, merged regions of crossing lines no longer keep seams; scores unchanged while #937 is open; #1034: document-point character controls after object/group scaling; full readiness recomputed as the standard's additive weighted sum, ~62%; per-audience hours; essentials-user score ~75% added; ready-for-real-work re-examined: 50% → 55%, mainstream 65% added; earlier the same day: full re-measure against Illustrator 2026 30.x; merged the ROADMAP's parity estimate, honest assessment and "Shipped so far" into this file; SVG knockout groups of opaque art export without masks; Image Trace: colour presets no longer shatter noisy flat art and photos trace into smooth tones, measured in `image-trace-quality.md`, score unchanged; Split Into Grid options, #1462; Transform Objects and Reflect across an angle, #1448 and #1460; Pathfinder panel on a group, #1450; unknown parameter keys refused, #1442; grayscale TIFFs with alpha, #1466 in part; scores and hours unchanged; Image Trace places edges to a fraction of a pixel in every mode, measured in `image-trace-quality.md`, score unchanged; 3D and Materials: Extrude & Bevel, Inflate and Rotate added, 3D ~8% → ~25% (estimated), menu stubs 25 → 22; Affinity text frames too short for their first line show it, #1423; Transform dialogs preview, #1412, and the transform tools and commands act on direct-selected anchors, #1408; `.ai` compound path paint, #1410; strokes wider than their shape, #1396; corner drags hide the bounding box, #1229; scores and hours unchanged; PDF and `.ai` import keep overprint, #1388, scores unchanged; `.ai` editing-data follow-ups: gradient stops, type of objects with an appearance, short area-type frames (#1390, #1391, #1392); dialog keyboard focus on every open (#1382, #1395); art flush with an artboard (#1375); font rescan (#1376); symbol instance redraw cache (#1386); scores and hours unchanged; grid tool options, #1377 in part, scores unchanged; `.ai` placed (linked) files read from the editing data, #1264, scores unchanged; gradient shapes import as paths, #1304; white constant alpha masks, #1286 in part; Live Corners widget click selects its corner, #1239; scores and hours unchanged; custom ruler origin, #1212; Artboard click-to-fit verified for objects, groups, visible bounds, undo and cancellation (#1227); scores and hours unchanged; Pathfinder single-result source names and SVG IDs retained, #1293; Localization: Korean catalog added, 54% → 63%, full readiness unchanged at ~62%; desktop print transport adopts craft-print, Windows 7 fallback retained, scores unchanged; Image Trace: an image over 64 megapixels traces scaled down instead of being refused, scores unchanged; Czech render-site localization follow-up; scores and estimates unchanged; Document Setup: Edit Artboards closes the modal after applying valid settings; pointer-click regressions; scores and hours unchanged; Artboards: Escape exits editing; an active drag cancels first; shortcut-routing regression; scores and hours unchanged; Path operations: Simplify preview/counts and component selection (#1272); scores unchanged; G2: Film Grain added; Photoshop effects 29/57; 28 filters remain; Platforms: RPM runtime capabilities and glibc floor (#1275); scores unchanged; Raster effects: squared-distance texture redraws (#1257); pixels unchanged; scores and hours unchanged; Drawing: Curvature point display improved (#1236, in part); scores unchanged; Type core: full-name font matching (#1258), scores and hours unchanged; Selection: no-op anchor Align preserves history and saved state (#1180 follow-up); scores unchanged; UI chrome: Eyedropper cursor and precise-setting regressions (#1269); scores unchanged; Colour: Eyedropper reads visible locked and outside-isolation sources (#1251); scores and hours unchanged; Selection: segment click/Delete preserves neighboring edges (#1278); scores unchanged; Colour: unpainted zero-width strokes regain 1 pt when painted (#1253); scores and hours unchanged; graphs: designs and markers, data, Graph Type and label options; UI chrome: native macOS save Format menu, #866, scores unchanged; compound paths inherit the backmost appearance and member fill-rule edits reach their owner, #1197; scores unchanged; Type core: Middle Eastern digit types done, Character panel menu › Digits; PDF export warns when the pixel cap lowers raster-effect resolution; Drawing tools: Live Corners round corners between curved sides, #1144; Type advanced: proportional vertical metrics (`vpal`) done, #966; Shape Builder: #893 fixed, merged regions of crossing lines no longer keep seams; scores unchanged while #937 is open; #1034: document-point character controls after object/group scaling; full readiness recomputed as the standard's additive weighted sum, ~62%; per-audience hours; essentials-user score ~75% added; ready-for-real-work re-examined: 50% → 55%, mainstream 65% added; earlier the same day: full re-measure against Illustrator 2026 30.x; merged the ROADMAP's parity estimate, honest assessment and "Shipped so far" into this file; SVG knockout groups of opaque art export without masks) · **Target:** Adobe Illustrator 2026 (30.x; public release notes through 30.7, August 2026)The authoritative parity assessment. [`ROADMAP.md`](../ROADMAP.md) summarizes it; [`gaps.md`](gaps.md) isthe work list made from it. Deep areas have their own checklists: [UI and interaction](ui-parity.md),diff --cc xtask/src/pdf_deps.rsindex 1e44b1bf4,61a047192..1639264c2--- a/xtask/src/pdf_deps.rs+++ b/xtask/src/pdf_deps.rs@@@ -5,9 -5,8 +5,9 @@@ use std::process::Commanduse serde_json::Value;- const REV: &str = "89dcbb3060377a26c99a6d80caa16084366704c4";-const REV: &str = "f39922b214dc429bcf6551ef71ed3631337b2acf";-const PACKAGES: &[(&str, &str)] = &[("craft-pdf", "0.1.0"), ("krilla", "0.8.2")];++const REV: &str = "ca50d63b773c99f96e75c77ce5a1d21e7c9cda0d";+const PACKAGES: &[(&str, &str)] =+ &[("craft-pdf", "0.1.0"), ("krilla", "0.8.2"), ("hayro-syntax", "0.7.2"), ("hayro-interpret", "0.7.0"), ("hayro-jbig2", "0.3.0")];pub fn run(root: &Path) -> Result<(), String> {let output = Command::new(std::env::var_os("CARGO").unwrap_or_else(|| "cargo".into()))