Commit Graph
1428 Commits
Author SHA1 Message Date
FredApps 81a475e55f Merge pull request #6982 from Combiler01/fix/freehand-highlight-icon
Fix: Use a dedicated icon for Freehand Highlight (#6961)
2026-11-27 23:30:26 +01:00
FredApps f53cab766c Merge main into #4538 2026-11-26 20:27:19 +01:00
FredApps 1e05eefeae Merge main into #4369 2026-11-27 00:10:52 +07:00
FredApps e4144bfdde Merge main into #4538 2026-11-27 00:09:02 +07:00
FredApps e334d6d4be Merge pull request #4527 from EricKaden/fix/xfa-ready-events
XFA: ready events run in the other viewer's order, and layout:ready again after a new layout
2026-11-26 17:50:24 +01:00
FredApps d3428827db Merge pull request #2763 from kavishkashehan726-sudo/claude/serene-hawking-sk6w13
fix(engine): validate signed XFA forms as the file was read (#2759)
2026-11-26 17:37:19 +01:00
FredApps 328a1bca2b Merge main into #4538 2026-11-26 17:33:12 +01:00
FredApps 781ab07f8c Merge main into #4369 2026-11-26 23:23:46 +07:00
FredApps 0b47a83928 Merge main into #4527 2026-11-26 23:05:58 +07:00
FredApps c2bd7c14b7 Merge pull request #4604 from mtlcl410/fix/xfa-script-relayout-full-refresh
M12: an XFA form laid out again by its scripts rebuilds its pages in the view (#4603)
2026-11-26 16:51:38 +01:00
FredApps 8e8019a742 Format the click test's focus assertion 2026-11-26 16:49:37 +01:00
FredApps cd7b5cefd0 Merge main into #2763
main split the engine's lib.rs into modules; the as-opened validation is ported: Editor::as_opened and AsOpened in history.rs, editor_signatures in doc_state.rs (used wherever an editor's signatures are validated), the as-read capture in open.rs, and mark_saved clearing it in session/save.rs. The test also pins the saved status (dynamic Invalid, static Valid).
2026-11-26 22:46:38 +07:00
FredApps 9a1d2b4d37 Merge pull request #4551 from dotCooCoo/fix/automation-reports-form-script-errors
fix(automation): doc_open and form_fill report the errors of the form's scripts
2026-11-26 16:39:05 +01:00
FredApps 1c2a179a62 Fit the landed changes together: the click test expects main's FocusField request 2026-11-26 22:18:15 +07:00
FredApps 2ebe4e6ac3 Merge main into #4369 2026-11-26 22:14:30 +07:00
FredApps 8723f5ba4a Merge main into #4604 2026-11-26 21:24:21 +07:00
FredApps 19ff1f2678 Print: check printer marks fit before Will Print runs
With marks, a page the marks would widen past 14,400 pt was refused only after the
document's Will Print actions ran, so their field change stayed behind a print that
failed. Session::check_printer_marks runs the mark editor on a scratch copy first;
doc_print calls it before Will Print, and the print still adds the marks after it.
2026-11-26 21:21:05 +07:00
FredApps 43a96eb390 Merge main into #7158
# Conflicts:
#	crates/automation/src/tools.rs
2026-11-26 21:03:58 +07:00
FredApps 375abe3b11 Merge main into #4551 2026-11-26 20:54:04 +07:00
FredApps e550b6bc45 Merge pull request #7818 from KenM76/feat/suggest-outline
feat(bookmarks): suggest an outline for review (#6020)
2026-11-26 14:23:57 +01:00
FredApps 6f1c601a38 Merge pull request #7810 from KenM76/feat/autotag-pagination
Auto-tag marks running headers, footers and page numbers as pagination artifacts (#7065)
2026-11-26 14:12:01 +01:00
FredApps 257407147d Merge main into #2896
Main split organize/src/import.rs into import/{carry,combine,copy,fields}.rs and already made set_attachments UTF-16-safe and indirect-/Names-safe (this PR's other two hunks), so those take main's version. Ported the PR's core change: insert_file_pages now merges the source's catalog attachments via carry::collect_attachments + attachments::entries (made pub(crate)) + set_attachments. PR's engine regression test file kept as-is; parity evidence/notes merged onto main's entries (it/ paths); ROADMAP/docs entries added to main's text. cargo check -p pdfcraft-organize -p pdfcraft-engine --tests passes locally.
2026-11-26 19:53:56 +07:00
FredApps b5e23f1323 Merge branch 'main' into feat/suggest-outline 2026-11-26 13:23:29 +01:00
FredApps dc3aab8af9 Merge branch 'main' into feat/autotag-pagination 2026-11-26 13:23:18 +01:00
Combiler01 7d6fa25362 Merge remote-tracking branch 'upstream/main' into fix/freehand-highlight-icon
# Conflicts:
#	ATTRIBUTION.md
#	ATTRIBUTION.toml
#	crates/ui-egui/src/panels/comments_panel.rs
#	crates/ui-egui/src/widgets/icon_data.rs
#	crates/ui-egui/src/widgets/icons.rs
2026-11-24 14:16:06 +05:30
KenM76andClaude Opus 5.5 6481545e4a fix(engine): treat a bold word inside one run of prose as emphasis
A producer may draw a sentence as one text run with a gap and paint the
bold word into it. The prose box then spans the word instead of ending
beside it, so the overlap limit rejected it and the word was suggested
as a heading. Prose whose box spans the line on its row now counts as
beside it; the row, size, style and lower-case conditions are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 02:31:07 -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 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
KenM76andClaude Opus 5.5 1a25e882c5 style(engine): restore LF line endings in suggest_outline.rs
The previous commit rewrote the file with CRLF endings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:48:09 -05:00
Harsh Verma e9a417ebfb Merge branch 'main' into fix/freehand-highlight-icon 2026-11-22 11:36:33 +05:30
KenM76andClaude Opus 5.5 d8e0bc1e90 fix(engine): a bold word set smaller than its sentence is not a heading
The beside test required the same size, so a 9 pt bold keyword in 10 pt
prose (RFC 9110 page 16, reported on #6020) was suggested again. A line
now counts as inside a sentence when the prose beside it is no smaller
than it; a heading set larger than run-in text beside it stays a heading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:49:38 -05:00
KenM76andClaude Opus 5.5 7f153466a3 fix(engine): text beside an italic word still sets the body size
Blocks set inside a sentence were removed before the heading rules ran.
The check is symmetric, so prose beside an italic word was removed too,
and a page of such paragraphs lost its body text: the body size became the
heading's, and the heading was dropped. Inline blocks now stay in the
evidence, counting toward the body style, but marked as having no letters,
which the rules never take as a heading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:43:38 -05:00
KenM76andClaude Opus 5.5 67f6269142 fix(engine): a bold word inside a sentence is not a suggested heading
A bold run inside a paragraph is a text line of its own, so the layout
fallback saw a short bold block where the body is regular and proposed it
as a bookmark. A line now counts as set inside a sentence when prose sits
beside it on the same row: boxes sharing at least half the shorter one's
height, side by side, at most half an em apart, at the same size, in
another style, with a lower-case letter. Such blocks are left out like
captions. The lower-case test keeps a bold title after its section number,
the half-height overlap keeps a heading over tightly set text, and the
half-em gap keeps a heading across a narrow gutter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 14:08:44 -05:00
FredAppsandFredApps 4f23ee1c1c test(rename): separate filename and full-path boundary fixtures (#7965)
* test(rename): separate filename and full-path boundary fixtures

* Preserve repository LF endings in rename test fixtures

* Preserve UTF-8 text in rename fixture repair

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-20 16:16:33 -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
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
dotCooCoo a3aa856b5e Merge main into fix/automation-reports-form-script-errors 2026-11-19 17:07:59 -08:00
dotCooCoo 7abd0a969e Tests: the repeated document-script error test uses a missing method
buttonGetIcon is implemented now, so the script the test used no longer
throws. The test calls a method PdfCraft lacks, as the neighboring
document-script test does, and changes the document script before each edit
because the script realm runs an unchanged document script once.
2026-11-19 17:07:55 -08:00
Dylan M. Taylor fd7c19ec69 red8 g3: app red round 8 fixes 2026-11-19 14:38:58 -05:00
Combiler01 023415c45b Merge remote-tracking branch 'upstream/main' into fix/freehand-highlight-icon 2026-11-19 18:57:13 +05:30
Dylan M. Taylor 91ccc09c88 app red 5 (g3) (swarm/red5); committed by the lead 2026-11-18 23:06:26 -05:00
KenM76andClaude Opus 5.5 cf65e9cb12 Merge origin/main into feat/autotag-pagination
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:18:09 -05:00
KenM76andClaude Opus 5.5 b758feda05 fix(a11y): a depth limit skips a branch instead of ending the walk
A branch past the depth or visit limit set `cut`, which then refused
every later node, so a shallow heading after a deep branch was lost.
The limits now only skip the node and report it; only the heading cap
still ends the walk. Marked content past the limit is reported too.
When no tagged heading is found and the suggestion falls back to
layout, the structure walk's truncation is kept in `truncated`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:03:05 -05:00
KenM76andClaude Opus 5.5 d3c615dd9b fix(bookmarks): report tagged headings cut by a limit; renest through children
bookmark_suggest's structure path always said truncated: false, though
pdfcraft_a11y::headings stops silently at 10000 headings, at a tree nested
past 256 levels and after a million visits. headings_with_truncation
returns the same list and whether one of those limits stopped the walk
where a heading could have been; headings keeps its signature and output.
The heading cap is now checked when a heading is met, so exactly 10000
headings is not reported as cut.

The tool description told callers to edit levels; a suggested bookmark has
no level and bookmark_import refuses one. It now says to move bookmarks
into or out of children.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 19:43:07 -05:00
KenM76andClaude Opus 5.5 5efa2d51a6 Merge origin/main into feat/autotag-pagination
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 19:27:54 -05:00
KenM76andClaude Opus 5.5 d93cdf718e Merge main into the branch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 18:01:57 -05:00
KenM76andClaude Opus 5.5 2980cfca6a fix(bookmarks): report every way a suggested outline can miss headings
bookmark_suggest's pages_read counted a page whose text could not be
read (its content past the page decode allowance) as read, and the
layout cap of 10,000 bookmarks dropped headings without setting
truncated. read_lines now counts the pages it read; the suggestion
carries truncated when pages were not read or more headings than the
cap were found, and the tool returns that. Caption leads (Figure, Fig.,
Table, Chart, Exhibit, Plate) now match in any case, so "FIGURE 3:" is
not suggested as a heading.

Tests: captions_match_in_any_case,
more_headings_than_the_cap_are_reported,
a_page_whose_text_cant_be_read_is_not_counted; each fails with its fix
reverted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 18:01:56 -05:00
dotCooCoo 65598f25f8 Merge main into fix/automation-reports-form-script-errors 2026-11-18 14:36:52 -08: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. Taylorandkiwi4boy 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