Commit Graph

458 Commits

Author SHA1 Message Date
Codex b4ac369611 Mirror the print panes for right-to-left languages 2026-12-01 01:20:05 +01:00
Codex 8a7e66552f Keep both print panes inside the dialog as settings get wider 2026-12-01 01:16:21 +01:00
Codex 0c4a605fca Reserve enough space for the print preview beside localized controls 2026-12-01 01:03:39 +01:00
Codex c44a7209c9 Pin the compact printer options and visible page preview 2026-11-30 17:38:27 +01:00
Codex 3c237b2a01 Use the compiled discrete-scrollbar backport 2026-11-30 17:13:53 +01:00
Codex c3920c644d Include discrete spread navigation and exact gapless page edges 2026-11-30 17:09:41 +01:00
Codex efd3b2527f Keep background startup wakeups off the UI thread's active state 2026-11-30 16:13:35 +01:00
Codex 49291852a5 Pin the corrected print settings grid 2026-11-30 15:50:39 +01:00
Codex aa5eec24fe Reflow the document print preview into the available dialog width 2026-11-30 15:37:48 +01:00
Codex a2d040ce08 Place page content on physical pixels for sharp text at normal zoom 2026-11-30 14:49:47 +01:00
Codex 76f52b00dd desktop: position menus and dialogs against the actual Windows display 2026-11-30 14:28:12 +01:00
Codex 7ec98858aa Pin the verified shading, viewport and docked Edit Toolbar changes for 0.23.1 2026-11-30 14:04:39 +01:00
Codex e38872a977 build: pin dock header insets and text tab typography 2026-11-30 13:38:31 +01:00
Codex 675ba63f06 build: pin the reviewed page scrollbar geometry 2026-11-30 12:43:15 +01:00
Codex bde98cec5f fix(view): keep zoomed pages anchored and restore floating scrollbars 2026-11-30 12:41:41 +01:00
Codex cb76b2d7f9 Release: PdfCraft v0.23.1 2026-11-30 11:53:48 +01:00
FredApps 6fba05ab0b Release: PdfCraft v0.23.0
Bump the workspace version from 0.22.0 to 0.23.0 (Cargo.toml and
Cargo.lock), as cargo xtask version set 0.23.0 does.

Refs #8624
2026-11-30 03:16:52 +01:00
Dylan M. Taylor 4ef8250943 feat(pdfcraft): wire craft-nightly for self-isolated nightly launches (#8669)
* feat(pdfcraft): wire craft-nightly for self-isolated nightly launches

* fix(nightly): preserve version probes and app startup behavior

* fix(nightly): bump craft-nightly for single-instance sockets and add regression tests

* test(nightly): preserve app profile preparation behavior
2026-11-29 15:58:04 -05:00
Dylan M. Taylor a54bd301d3 chore(security): update curve25519-dalek to 5.1.0 (RUSTSEC-2026-0620) (#8671) 2026-11-29 12:52:32 -05:00
tomasmark79 d3c6bce447 Use canonical Wayland trackpad pinch support in PDFCraft (#1580)
* M3: restore native Wayland pinch through the resolved winit fork

Refresh #1580 on current main, pin the tested companion winit port and keep vendor changes as provenance. Permit only the exact temporary fork revision until storytold/winit#20 is merged. Retain the egui scale regressions and document current validation limits.

* docs: record native pinch verification and keep roadmap quotes contiguous

Document current-head GNOME feedback and protocol evidence, retain untested compositor and teardown limits, and address the MD028 review finding without changing runtime code or dependency-origin policy.

---------

Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-29 09:35:42 +01:00
Dylan M. Taylor be459f88d3 feat(nightly): onboard PdfCraft to signed two-stage nightly releases (#8643)
* feat(nightly): onboard PdfCraft to signed two-stage nightly releases

* chore: update Cargo.lock for rfd dependency in pdfcraft app

* chore: retrigger CI checks

* fix(nightly): enable Linux package_formats (including Flatpak) in signing policy

* fix(nightly): fix unused import, attribute nightly icons, and wire -Nightly/-BuildOnly in package.ps1

* test(nightly): exclude packaging/** from coverage and add nightly bootstrap unit tests
2026-11-29 01:09:39 -05:00
FredApps 7b82e3e7ae deny: pass the licence, source and advisory checks again
Allow CDLA-Permissive-2.0 (the certificate data in webpki-roots) and storytold's own repositories as git sources (vectorcraft-geom and vectorcraft-pathops come from storytold/vectorcraft). Lockfile only: url 2.5.8 to 2.5.9 (RUSTSEC-2026-0592, with form_urlencoded 1.2.3), async-executor 1.14.0 to 1.14.1 (yanked).
2026-11-26 20:08:24 +01:00
FredApps e0b127218d Merge main into #2268 2026-11-26 22:08:47 +07:00
FredApps b0944dce35 Merge branch 'main' into codex/fix-watermark-visible-crop 2026-11-26 13:23:12 +01:00
Dylan M. Taylor 0b714d0ee6 Cargo.lock: resolve the craft framework at storytold/craft-libs 0a6e42b80 2026-11-23 13:32:59 -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 47a2aa6652 prod merge: workspace compiles against the synced framework (system clipboard feature, dock shown set as a Tracked set, preview serials, combo box edit response, examples on the ctx signatures; fill_screen pending L-314) 2026-11-23 01:26:55 -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
charlieruk 9b3e6d6f38 deps: url 2.5.9 for RUSTSEC-2026-0592 (#8092) (#8093)
url 2.5.8 overflows the stack in Url::origin() on nested blob: URLs, which aborts the process past catch_unwind. 2.5.9 fixes it; form_urlencoded 1.2.3 comes with it.
2026-11-22 21:03:44 -06:00
Dylan M. Taylor a18498e835 Merge release v0.22.0 back to main (#8108)
* Release 0.20.0

* Release: PdfCraft v0.22.0

---------

Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-22 18:47:33 -05:00
Dylan M. Taylor 13770dc8f4 render: enforce max_coverage via craft-libs #2546 (storytold/craft-libs#778) (#7961) 2026-11-20 09:08:58 -05:00
FredApps c05499f707 Merge pull request #2923 from regendorf-ux/pr/tab-rename
Rename the open file from its tab (Rename… and double-click), with names that work on every system (#2102, #2867)
2026-11-20 21:03:47 +07:00
Dylan M. Taylor 2c0280eb11 fonts: cut over encodings, Std14, and font wire builders to craft-pdf (#778) (#7940) 2026-11-20 07:17:06 -05:00
skylar taylor-barrick 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 0a53d7cc22 create: use shared JPEG and JP2 embedding probes from craft-image-codecs (#778) (#7939)
* create: use shared JPEG and JP2 embedding probes from craft-image-codecs (#778)

* deps: pin craft-image-codecs to craft-libs main a7c6c9d6
2026-11-20 00:34:51 -05:00
Dylan M. Taylor e1d2f32e58 export, xfdf: cut over portable HTML writer and XFDF/FDF grammar to craft-libs (#778) (#7914)
* export, xfdf: cut over portable HTML writer and XFDF/FDF grammar to craft-libs (#778)

* fix(xfdf): align craft-xml rev with craft-xfdf and deref standalone El

* fix(xfdf): remove redundant deref on standalone(el, ns)

* xfdf, export: update craft-libs pin and add XFDF annotation round-trip test

* chore: align craft-xml rev with craft-xfdf

* chore: repin craft-xml to craft-libs main

* chore: repin craft-xml, craft-xfdf, craft-html to craft-libs main

* test(xfdf): pass &str to import_comments in round-trip test

* test(xfdf): bind dst.get(dst_ref) before as_dict

* test(fonts): import pdfcraft_cos::Stream in embedding tests

* test(xfdf): update newly added square annotation instead of widget[0]

* test(xfdf): read newly imported annotation at Annots.last() in roundtrip test
2026-11-19 22:42:25 -05:00
Dylan M. Taylor d7f4c6a668 mcp: delegate stdio framing and JSON-RPC envelopes to craft-mcp-server and craft-jsonrpc (#7910) 2026-11-19 18:38:34 -05:00
Dylan M. Taylor 14a88abca6 red9 g5: app red round 9 fixes 2026-11-19 17:26:56 -05:00
Dylan M. Taylor 13f1bf1e2d Navigation: a wheel notch eases unless animation effects are reduced, as production (F-48) 2026-11-19 13:23:52 -05:00
Dylan M. Taylor 44aaf2d003 Merge main preserving RTF safety and PPTX parity fixes 2026-11-18 21:06:36 -05:00
Dylan M. Taylor aea595f33c lead: the mode bar's tab strip takes its natural length inside the bar (the framework's collection-scroll rule; 4,568 test panics) 2026-11-18 19:52:27 -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 8f4f4ea9c5 Cut over pptx export to craft-pptx (#7823)
* cut over pptx export to craft-pptx (storytold/craft-libs#792)

* style(export): run cargo fmt on pptx.rs
2026-11-18 18:57:36 -05:00
Dylan M. Taylor 5727e93321 compile fix 8 (all): paragraph painted through ContentPainter components (L-222), comments overlay on PageSession, CanvasAction CopyText/ColourRequest, crates/fonts emits EmbeddedFace (L-221) (swarm/cfix8); committed by the lead 2026-11-18 18:42:29 -05:00
kiwi4boy f77ad824ee Merge main (#7814, which landed steps 1 and 2) and keep the RTF picture fixes
#7814 brought this branch's first two commits to main inside step 2, but not the three
fixes made here since: the RTF picture budget that counts every placement, rotations baked
into the pictures, pictures fitted to the text height, and the pages that lost a picture
reported through truncated_pages. They now sit in step 2's Builder: RTF's flow_doc gives
it a pictures::Budget, and Word's word_doc doesn't, so Word keeps its own limits
(room_for) and turns positioned pictures through their float. The text-height fit is in
the shared picture(), so Word's flowing pictures fit too.

The truncated_pages doc now says what RTF reports: pictures lost to its own limits or a
rotation it couldn't bake. A picture no format can encode is left out of all of them.
2026-11-18 17:28:58 -05:00
Dylan M. Taylor d03b99ea54 Export: Word through craft-docx, from the shared word model (rebased #7592) (#7814)
* export: write RTF through craft-rtf's full writer, from the word model

The pages are mapped onto a craft_wordmodel::Document (as_word.rs, the
mapping the DOCX export will share), and craft_rtf::doc::export writes
it. Over the small writer this keeps, in RTF:
- pictures, inline (the engine no longer leaves them out for RTF);
- each page's size, as a section per page (blank pages kept);
- Heading 1 and 2 styles;
- the title;
- hard line breaks inside a paragraph or cell (storytold/pdfcraft#4723).
It also fixes two bugs: \cellx was the absolute page x, so every column
edge sat one left margin too far right, and tables that touched became
one (NIST CSF 2.0 came out with 28 tables instead of 68).

craft-rtf, craft-wordmodel, craft-docx and craft-mime are pinned together
at one craft-libs commit: doc::export takes its own revision's Document.

* export: pin craft-libs main with push_text, the header-row fix and the RTF generator name

craft-rtf, craft-wordmodel, craft-docx and craft-mime move to craft-libs
b8eaa8e2, which has storytold/craft-libs#1946, #1947 and #1950. The
mapping appends through Paragraph::push_text/push_object, tables keep
the default look, and the RTF names PdfCraft as its generator.

* export: write Word through craft-docx, from the shared word model

as_docx.rs no longer writes WordprocessingML itself: as_word::word_doc
maps the pages onto a craft_wordmodel::Document and craft_docx::write
writes it. The decisions stay the same: a page with rotated text or
overlapping text keeps its layout as positioned text boxes and pictures
(watermark-sized text behind, pictures over it, other text on top), the
other pages flow, each page is a section of its own size, a shared page
colour is the document's, the PDF's language goes in the slot Word keeps
for its script, and the media limits are unchanged.

Over the hand-written package this gains:
- a VML fallback for every text box, so Word 2007 opens positioned pages;
- rotated text as a turned text box Word draws as a line;
- the body font named (Arial), with a font table saying it is a sans;
- PdfCraft as the application in docProps/app.xml;
- a picture drawn many times stored once.

The tests that matched XML read the package back through craft-docx.

* parity: the Word export through craft-docx, checked in Word 16, Word 2007 and LibreOffice

* chore: update Cargo.lock after rebasing #7592

---------

Co-authored-by: kiwi4boy <kiwi4boy@gmail.com>
2026-11-18 17:11:01 -05:00
Aleksander Helgaker 77ea9b701b Merge branch 'main' into codex/fix-watermark-visible-crop 2026-11-18 22:13:27 +01: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