266 Commits
Author SHA1 Message Date
Dylan M. Taylor 940c2b6b8f CI: clippy clean on all targets; fix the Windows print dialog build
After the craft framework port (#8160):
- Test modules gated by cfg(all(test, not(wasm32))) weren't recognised as tests by
  clippy, so their expect/panic calls counted as production code; gate them with
  cfg(test) and cfg(not(wasm32)) separately.
- Remove dead test helpers, restore the Windows manifest tests the port dropped,
  and fix the remaining lints (redundant clones and casts, unused imports).
- Page Setup on Windows called a main_window_handle() that doesn't exist; parent the
  driver dialog to the active window again, as before the port.
2026-11-23 16:07:08 -05:00
Dylan M. Taylor cf53c79625 Resolve the craft framework from https://github.com/storytold/craft-libs next at 0a6e42b80bfd586aee6ee1144aa98cf1ea37a844
Every framework path dependency and patch is now a git dependency at that revision.
Cargo.lock is regenerated against it separately.
2026-11-23 13:32:32 -05:00
Dylan M. Taylor df0f36ea67 prod merge: the web build compiles again: craft's dialogs feature (rfd panels, threads) is native only; the web saves through the platform BrowserFiles (Files::save: the browser's save picker or a download), with its own SaveTarget; native-only uses gated (window/dock tables, control server, RecoveryStore, reload watch, legacy app.ron, reveal); a web clipboard over EventClipboard; web OCR and print wake through Wake instead of the removed ctx field; pdfcraft-web takes a ControlChannel and protocol::REPLY_DEADLINE 2026-11-23 08:17:34 -05:00
Dylan M. Taylor d0e9ba10c5 prod merge: re-pin every craft-libs entry to the synced framework (f9d38c866, pushed pdfcraft-port head; incl. craft-pkcs7, craft-html, craft-xfa, craft-xfdf, craft-web-api/web-host, preflight's craft-cms), patch craft-font-catalog, craft-xfa and craft-xfdf to it as well (one craft-font-catalog in the lock), one lock resolve, regenerate ATTRIBUTION.md 2026-11-23 08:17:33 -05:00
Dylan M. Taylor 2288f7a37c prod merge: the web build's file service saves to an embedding page first (page_saves) 2026-11-23 01:49:16 -05:00
Dylan M. Taylor cca41815d9 prod merge: clippy clean (dead code from the port and the merge removed or test-only, whole-document text copies drained each pass, native menu frame wired, deprecated egui ids, codemod's doubled ctx parameters, type aliases) 2026-11-23 01:46:21 -05:00
Dylan M. Taylor 3404bf4ac7 port sync: the web build takes the platform browser file service (L-313, L-317) 2026-11-22 23:18:14 -05:00
Dylan M. Taylor b86eff8259 merge deps: union workspace deps at the port pin (wordmodel, mcp-server, jsonrpc; craft-pdf fonts; 0.22.0), hayro/framework patch paths, shared AGENTS.md with port facts, comment wording, port Cargo.lock restored. The lead re-pins craft-libs after the framework sync. 2026-11-22 22:50:16 -05:00
Dylan M. Taylor 333b287a8b Production merge skeleton: upstream/main 9b3e6d6f3 into area/app-1 6cfe35235, conflict markers left in (42 files; 4 modify/delete keep the port's deletion) 2026-11-22 22:39:00 -05:00
aiongg 3f3b3e634a Adopt the shared AGENTS.md (RFC-0072) (#7937)
* Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071)

* Point removed AGENTS.md section references at the shared standards
2026-11-20 18:10:17 +07:00
skylar taylor-barrickandDylan M. Taylor 20830d092c Route PDF parsing and rendering through shared craft-pdf (#2068)
* refactor(render): route PDF reading and rendering through shared craft-pdf (storytold/craft-libs#778)

* fix(render): convert u32 raster dimensions to usize for Pixels::zeroed

* fix(render): remove unused hayro_syntax imports in inspect

* fix(render): let shared raster dimensions reject rounded over-budget sizes before allocation

* chore(pdf): repin craft-libs to #2497 and align tests with shared contract

* fix(render): align remaining 8 tests and OutputLimit error with craft-libs contract

* docs(attribution): update ATTRIBUTION.md for shared hayro* dependencies

* docs(attribution): include adobe_data suffix for hayro-cmap in ATTRIBUTION.md

* docs(attribution): sync ATTRIBUTION.md with cargo xtask assets --write

* docs(licenses): update NOTICE hash and hayro-interpret asset licences in LICENSES.toml

---------

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-20 02:53:23 -05:00
Dylan M. Taylor fd7c19ec69 red8 g3: app red round 8 fixes 2026-11-19 14:38:58 -05:00
Dylan M. Taylor 219abc1a58 App red round 7 g2: fixes and wiring from the g2 fixer 2026-11-19 12:26:12 -05:00
Dylan M. Taylor df8c2d54be app red 5 (g5) (swarm/red5); committed by the lead 2026-11-18 23:06:26 -05:00
Dylan M. Taylor d9ac7bfeff lead: every kittest harness creator installs the runtime first (L-227; tools-lead/harness-install-codemod.py, 361 creators) 2026-11-18 19:46:37 -05:00
Dylan M. Taylor b1f4af2974 L-227: the app creator installs the framework runtime (native and web) with the startup language's fonts; test install helpers (rfix1). L-228: fonts_ready goes; a language change installs its fonts (lead) 2026-11-18 19:46:08 -05:00
Dylan M. Taylor 5526134502 lead: the workspace compiles with its tests. main.rs: claim without the assumed portable flag, title bar from settings.layout, the app opens and attaches its settings store (attach_settings, owed by pdf-shell-w9), control channel, ctx (L-208); q221: redact_props pub (pdf-forms-w13 row 63), comments::thread_id pub, the grid test reads its texture bytes; PastePlacement pub (its field is) 2026-11-18 19:25:13 -05:00
Dylan M. Taylor c07c6954e7 test compile fix 2 (all) (swarm/tfix2); committed by the lead 2026-11-18 19:22:11 -05:00
Dylan M. Taylor 79477f3909 Point hayro-postscript to storytold/craft-libs (storytold/craft-libs#790) (#7828) 2026-11-18 19:08:53 -05:00
Dylan M. Taylor 3aa7560526 test compile fix 1 (t-rest) (swarm/tfix1); committed by the lead 2026-11-18 19:04:13 -05:00
Dylan M. Taylor da17275b5e lead: tests through the codemods (L-171 873 moves, L-219 ctx, E0615 method calls), standalone test crates build their own app, main/app_creator keep their signatures, automation's craft dependency, canvas borrow order 2026-11-18 18:49:55 -05:00
Dylan M. Taylor 8c2b2e07a5 lead at combine (app-1): R-1 mod lines for 20 set files and tests/it/optimize; L-168 codemod (498 new() calls: control::new_app, for_unit_tests, startup::test_app); L-208 codemod (AppHarness execute/set_option, 786 bare calls with a fresh Context); 85 icon documents restored from the base (chrome-w19's PLAN) 2026-11-18 16:21:48 -05:00
Dylan M. Taylor 01daa58e2d pdf-hub-w1: net change of 2 commits
- pdf-hub-w1: written (committed by the lead: the run's own commit failed while gpg was locked after a reboot)
- pdf-hub-w1: review fixes (review-1)
2026-11-18 16:15:28 -05:00
Dylan M. Taylor 1620fd1a6c pdf-shell-w14: net change of 4 commits
- pdf-shell-w14: written by an agent
- pdf-shell-w14: finished by an agent
- pdf-shell-w14: finished by an agent
- pdf-shell-w14: review fixes (review-1)
2026-11-18 16:15:24 -05:00
Dylan M. Taylor cb94bfbaa0 pdf-shell-w12: net change of 2 commits
- pdf-shell-w12: written by an agent
- pdf-shell-w12: finished by an agent
2026-11-18 16:15:24 -05:00
Dylan M. Taylor 62d0833728 pdf-shell-w6: net change of 2 commits
- pdf-shell-w6: written by an agent
- pdf-shell-w6: review fixes (review-1)
2026-11-18 16:15:24 -05:00
Dylan M. Taylor 18074b1bc4 owed by pdf-hub-w1/pdf-shell-w6: facade features text, text-font-picker, font-manager, platform-clipboard, update, theme-store, imaging; ui-testing for tests; craft on both app binaries (L-207, q199) 2026-11-18 15:17:04 -05:00
Dylan M. Taylor 6b47294aec Pin craft-libs to next at 527c2750e 2026-11-17 09:04:25 -05:00
FredApps 3d43364928 fix(crypt): write RC4 fixtures through the legacy entry points
Pinning craft-pdf to the #1852 merge SHA also picked up d74e60b2, which
makes create() and set_encryption() refuse RC4-40 and RC4-128. Tests,
helpers and the protect example that still write those schemes now use
create_legacy and set_encryption_legacy. Edit::Protect does the same
when the chosen algorithm is legacy, so a file that must stay readable
by a reader without AES can still be written.
2026-11-16 14:11:36 +01:00
Dylan M. Taylor eead454105 Cut over remaining codecs, xfa XML, and export packaging to craft-libs (#7326)
* chore: cut over image, png, tiff, and zune-jpeg to craft-image-codecs

* chore: cut over xfa XML parsing from roxmltree to craft-xml

* chore: cut over export DOCX and PPTX packaging to craft-opc and craft-xml

* style: cargo fmt
2026-11-14 13:49:46 -05:00
FredApps e6730be289 test: scope CPU override regressions to supported platforms 2026-11-13 14:08:57 +01:00
FredApps 5a53828c70 fix(startup): detect aws-lc's CPU features at start, as before 2026-11-12 19:39:12 +01:00
FredApps d0ab739f30 style: wrap the dropped-OPENSSL_ia32cap log line for rustfmt 2026-11-12 19:35:17 +01:00
FredApps f52c6d8555 fix(startup): an OPENSSL_ia32cap naming a missing CPU feature no longer stops PdfCraft (#2916) 2026-11-12 18:53:52 +01:00
bflatastic 3b23494513 Merge remote-tracking branch 'origin/main' into merge/egui-725a39fc-6699 2026-11-10 15:24:11 +07:00
Hazel Granados 45d51d8c46 M3: a file named with open parameters opens at their destination (#3425) (#5049) 2026-11-10 14:23:54 +07:00
Piohrun e2464e1440 M2: a JBIG2 mask with a large symbol dictionary draws, and one a decoder limit refuses takes its picture with it (#6722) (#6784) 2026-11-10 10:43:13 +07:00
art804andFredApps dff02827fd Print: list printers without asking drivers; ask only about the one picked (#2192) (#3554)
* Print: list printers without asking drivers; ask only about the one picked (#2192)

On Windows, craft-print's printers() reads every driver's capabilities to
report two-sided support. Windows takes about 48 s to give up on a printer
it can't reach, such as a WSD printer on another network, so the Print
dialog waited for each one before it listed anything (#2192).

The dialog now lists printers from craft-print's printer_queues(), which
asks no driver, and asks two_sided() about the printer the user picks, on
a background thread (PdfCraftApp::two_sided_source, set by the desktop app
like printer_source). Each answer is kept for the session, so a printer is
asked about at most once, and one nobody picks is never waited on. The
"doesn't take two-sided settings" note shows once the answer arrives.

The automation printers tool still uses printers(), so it keeps reporting
two_sided.

Needs the craft-libs change that adds craft_print::two_sided.

* Build: take craft-print from storytold/craft-libs#133

Pins craft-print to the head of storytold/craft-libs#133 (b6a3b87), which
adds craft_print::two_sided as one commit on craft-libs main at 5ee809f.
craft-print is otherwise unchanged from 7ee35a9, the rev main pins now; the
other craft-libs crates stay where they are. Fetched through the
storytold/craft-libs URL, so cargo-deny's allow-git is unchanged. To be
replaced by the merge commit once #133 lands.

* Print: run at most four two-sided reads at once

A driver Windows can't reach holds its two-sided read for about 48 s, so
picking printer after printer started a thread for each. At most four now
run at once; past that, the printer picked is asked once a read finishes.

Tests: hanging reads are capped and the picked printer is asked after one
finishes; a list that already says whether a driver takes two-sided
settings is used as it is, with no driver asked.

* Repin craft-print to craft-libs main, where #133 merged (b6b8a55b)

---------

Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-10 02:17:00 +01:00
bflatastic 2ce2d3cf81 Merge main into merge/ui-print-optimize2
# Conflicts:
#	crates/automation/src/redact.rs
#	crates/automation/src/tools.rs
#	crates/print/src/lib.rs
#	crates/render/src/inspect.rs
#	crates/render/src/lib.rs
2026-11-09 20:56:15 +07:00
mtlcl410 ad42d5c276 Merge upstream/main into fix/indexed-short-lookup 2026-11-09 18:48:21 +08:00
mtlcl410 1dd2549a97 Merge remote-tracking branch 'upstream/main' into lane6-2701c
# Conflicts:
#	crates/print/src/tests.rs
2026-11-09 18:46:52 +08:00
Dylan M. Taylor b4679deafd fix(cli): cap input reads, budget check's edit pass and escape its stderr records (#5997) 2026-11-09 18:38:34 +08:00
Dylan M. Taylor ba47f7bbc5 fix(cli): render needs the copying permission, as text does (#5990) 2026-11-09 18:38:17 +08:00
jonathanwxh-cell d4828fe541 fix(app): set Windows taskbar and Alt+Tab big icon (ICON_BIG) (#3818) (#4681) 2026-11-09 18:26:07 +08:00
mtlcl410 59eee050c6 M14: the --control file is owner-only on Windows too, and the CLI checks it (#3922) (#3956) 2026-11-09 18:24:39 +08:00
mtlcl410 c028b51b3d M14: "Combine files in PdfCraft" on File Explorer's PDF menu (#585) (#2503) 2026-11-09 18:10:56 +08:00
alehelandClaude Opus 5.5 2be21c2e66 chore(deps): bump storytold/egui to 725a39fc
Moves the egui crates from 6d518fc7 to the tip of the fork's
migration/egui-037-20261024 line. It adds two patches:

- E22: the fallback JavaScript highlighter no longer colours
  TypeScript-only keywords (storytold/egui#24).
- E23: dragging a Resize corner keeps a direction that isn't
  resizable (storytold/egui#25).

The rest is lint and PATCHES.md only. Default fonts are unchanged,
so the egui-icons provenance link only moves to the new rev. The
vendor graph test and vendor/README.md follow the pin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 10:51:30 +01:00
mtlcl410andClaude Opus 5.5 02db83e15d Merge upstream/main into fix/indexed-short-lookup
Main's #6663 added InterpreterWarning/RenderWarning::Type3WidthsMissing (patch
90) and a decoded-image cache that records warnings as flags (patch 91). Both
warning variants are kept in every match (renderer, automation, CLI), and
MalformedIndexedImage takes flag 32 in warning_bit/warnings_in. The ledger
keeps main's rows with (80) added; both sides' raster test modules are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCHD1R3rywQBPCHXZA
2026-11-09 11:23:00 +08:00
BFlat cde331fb7e Merge pull request #6663 from storytold/merge/render-interpret-patches
Land render and font patches (#6292, #6287, #6314, #6353, #6359, #6368, #6409, #6491, #6545, #6516, #6521, #6528, #6533, #6529, #6542, #6543, #6569, #6572)
2026-11-09 10:54:50 +08:00
mtlcl410andClaude Opus 5.5 f49ea0f70c Merge upstream/main into fix/indexed-short-lookup
Keeps main's vendor ledger with hayro-interpret patch (80) added, and both
sides' test modules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyCHD1R3rywQBPCHXZA
2026-11-09 10:42:14 +08:00