Commit Graph
273 Commits
Author SHA1 Message Date
FredApps 4733f25e1f Merge main into the main repair branch 2026-11-26 20:52:46 +07:00
FredApps 9b6e2a1660 Merge branch 'main' into fix/startup-activation-token 2026-11-26 13:22:30 +01:00
FredApps 9aee13f183 Merge #8180 into the main repair branch 2026-11-26 19:12:26 +07:00
Dylan M. Taylor c55c9ca155 Use the native private token writer in the CLI fixture 2026-11-24 06:20:31 -05:00
Dylan M. Taylor 5ea0f16556 fix: propagate PDFCraft locale to shared UI 2026-11-23 20:48:56 -05:00
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
bmh129 63e821e3e3 M3: release the launcher's activation token when the first window fails before handing it back
The first window used to spend the launcher's token as soon as it was chosen.
On X11, `UnownedWindow::new` can return an error before it reaches
`remove_activation_token`, so a retry got no token and the launcher's busy
cursor stayed until its timeout (CodeRabbit on #3972).

The token is now reserved while the window is built. Each backend marks it
spent just before handing it back (Wayland `xdg_activation.activate`, X11
`remove_activation_token`), a created window commits it, and a window that
fails earlier releases it for the next one. A window created while the token
is held neither takes nor releases it.
2026-11-16 21:17:05 -06:00
bmh129 4e634e4b01 M3: hand the launcher's activation token back from the first window (Linux)
A launcher with StartupNotify=true passes an activation token in
XDG_ACTIVATION_TOKEN (Wayland) or DESKTOP_STARTUP_ID (X11) and shows a
busy cursor until a window hands it back. winit hands back only a token
given through with_activation_token, and eframe never gives one, so GNOME
kept the busy cursor for 15 seconds after PdfCraft's window appeared, and
a Wayland window opened without keyboard focus.

Vendored winit patch 14: the first window created without a token takes
the environment's. Later windows don't reuse the spent token; an empty or
oversized (over 1,024 bytes) token is ignored, since on X11 an oversized
one would fail window creation. The variable stays in the environment:
removing it while other threads may read it is unsound.

Tests: startup_token's policy tests in the vendored crate (three fail with
the policy reverted) and apps/pdfcraft/tests/winit_startup_token.rs, which
keeps the patch in the build (fails with the Window::new wiring reverted).
2026-11-16 21:16:47 -06: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