Commit Graph
6827 Commits
Author SHA1 Message Date
RiceDee 86e61bd669 Merge main into fix/undo-in-open-text-editor
Conflicts:
- content_ui.rs: main's added-text editor (alignment, character
  spacing) kept whole; the box takes input_id() instead of an id_salt,
  and its Undo history is reset per document by forget_typing_before.
- tests/it/editing.rs: both sides' new tests kept.

#3546's TextDraft literals (editing.rs, edit_text_ui.rs tests) take
typing_from: None.
2026-10-25 00:39:41 +11:00
aiongg fc1372a64c fix(render): vendor hayro-postscript so a run of << in a CMap can't overflow the stack (#4363)
hayro-cmap reads CMap streams with hayro-postscript's token scanner,
whose object::read skipped each `<<` and `>>` by calling itself again.
A CMap holding a long run of `<` or `>` used one stack frame per pair,
overflowed the stack and aborted the process.

Vendor hayro-postscript 0.1.0 with read() looping over the delimiters
instead (from storytold/craft-libs#263), patched in beside hayro-cmap.
Four object::tests cover long `<<` and `>>` runs and the skipped
delimiters, plain and nested.
2026-10-24 09:38:10 -04:00
aiongg b6b0bbab08 fix(forms): a multiline field rejects a glyph wider than the field (#4447)
TextBox::fits checked only the height of a wrapped multi-line value.
Long words break by character, so a single character wider than the
box still overflows it, and the appearance reports Overflow::Wide for
a value fits had accepted. The multi-line branch now also requires
every wrapped line to fit the width.
2026-10-24 09:37:35 -04:00
Eric Kaden b5e88b3717 Merge remote-tracking branch 'upstream/main' into fix/choice-list-popup
# Conflicts:
#	crates/ui-egui/tests/it/forms.rs
2026-10-24 09:24:43 -04:00
Eric Kaden a90f764a8e M6: app.runtimeHighlight asks once, for the setting a script ends with, under the request cap 2026-10-24 09:21:03 -04:00
Claude 99d8f57e22 Merge remote-tracking branch 'upstream/main' into fix/search-scroll-after-zoom
# Conflicts:
#	ROADMAP.md
2026-10-24 13:17:00 +00:00
alehel fdc6175de8 Merge remote-tracking branch 'origin/main' into fix/background-hidden-by-page-backdrop
# Conflicts:
#	crates/ui-egui/src/marks_ui.rs
#	crates/ui-egui/tests/it/marks.rs
#	parity/acrobat-features.toml
2026-10-24 15:07:38 +02:00
Eric Kaden 22e20b04fb Merge remote-tracking branch 'upstream/main' into fix/xfa-runtime-highlight
# Conflicts:
#	crates/automation/src/a11y.rs
#	crates/engine/src/js.rs
#	crates/engine/src/tests.rs
#	crates/js/src/lib.rs
#	crates/js/src/tests.rs
#	crates/js/src/xfa.rs
#	crates/ui-egui/src/js_ui.rs
#	crates/xfa/src/tests.rs
2026-10-24 09:07:18 -04:00
Eric Kaden 0e3835d2d1 M12: one summary for flow_subform's docstring after the merge 2026-10-24 09:00:49 -04:00
Eric Kaden a7d51786da M12: links in screen-only and print-only XFA text work only where the text shows, and their pieces still join 2026-10-24 08:59:54 -04:00
Eric Kaden ad74832386 Merge remote-tracking branch 'upstream/main' into fix/xfa-relevant-print
# Conflicts:
#	crates/xfa/src/layout.rs
#	crates/xfa/src/pdf.rs
#	crates/xfa/src/tests.rs
#	parity/acrobat-features.toml
2026-10-24 08:59:54 -04:00
Eric Kaden 3ae1baa795 Merge remote-tracking branch 'upstream/main' into fix/xfa-enter-exit-on-focus
# Conflicts:
#	crates/engine/src/tests.rs
#	crates/xfa/src/tests.rs
#	parity/acrobat-features.toml
2026-10-24 08:55:39 -04:00
alehel e5800e8a13 Merge remote-tracking branch 'origin/main' into feat/all-tools-expand-view
# Conflicts:
#	crates/ui-egui/src/i18n/ar.tsv
#	crates/ui-egui/src/i18n/bg.tsv
#	crates/ui-egui/src/i18n/ckb.tsv
#	crates/ui-egui/src/i18n/cs.tsv
#	crates/ui-egui/src/i18n/de.tsv
#	crates/ui-egui/src/i18n/el.tsv
#	crates/ui-egui/src/i18n/fr.tsv
#	crates/ui-egui/src/i18n/hu.tsv
#	crates/ui-egui/src/i18n/it.tsv
#	crates/ui-egui/src/i18n/ja.tsv
#	crates/ui-egui/src/i18n/kk.tsv
#	crates/ui-egui/src/i18n/lo.tsv
#	crates/ui-egui/src/i18n/pl.tsv
#	crates/ui-egui/src/i18n/pt-br.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/sl.tsv
#	crates/ui-egui/src/i18n/te.tsv
#	crates/ui-egui/src/i18n/tr.tsv
#	crates/ui-egui/src/i18n/uk.tsv
#	crates/ui-egui/src/i18n/zh-hans.tsv
#	crates/ui-egui/src/i18n/zh-hant.tsv
2026-10-24 14:54:25 +02:00
aiongg b75cbd92c5 Merge pull request #4394 from aiongg/r3-batch-c
Integration batch 5: 9 contributor PRs (OCR, attachments, documents, selection), after #4391
2026-10-24 08:40:40 -04:00
aiongg 885ae3faf1 Merge pull request #4391 from aiongg/r3-batch-b
Integration batch 4: 26 contributor PRs (comments, viewer, pages, printing), after #4390
2026-10-24 08:39:00 -04:00
aiongg 0b51b20492 Merge pull request #4390 from aiongg/r3-batch-a
Integration batch 3: 47 contributor PRs (editing, forms, XFA, rendering)
2026-10-24 08:37:51 -04:00
aiongg 2ae1e915c9 fix(ui): comment composer visibility uses the shown rectangle 2026-10-24 12:13:22 +00:00
dotCooCoo 98907b3907 M11: PDF Optimizer can discard an embedded search index
PDF Optimizer > Discard Objects gets "Discard embedded search index", off
by default. It removes the entries of the catalog's /PieceInfo whose
application name contains "index" in any letter case, such as
IBM-ODIndexes, and removes /PieceInfo when nothing else is left in it.
Other application data and the pages' own /PieceInfo stay. An indirect
/PieceInfo is not edited: the catalog gets a direct copy without those
entries, and other objects that refer to the original keep it. The full
save leaves out the objects that only the removed entries refer to.

doc_optimize takes discard_search_index and reports search_indexes.
2026-10-24 04:51:17 -07:00
dotCooCoo 3d24d82635 M11: PDF Optimizer can discard links to other documents (external cross-references)
PDF Optimizer > Discard User Data gets "Discard external cross-references",
off by default. It takes GoToR, GoToE, Launch and ImportData actions, and
Thread actions with an /F, out of the actions of link annotations and
bookmarks, and the actions chained after one through /Next take its place
in order. Other annotations, such as form fields, keep their actions. A
link left with no action and no /Dest is removed from its page; when the
link is an indirect object, that object is rewritten without the action
for anything else that refers to it. A bookmark keeps its title, place and
children, including a bookmark stored directly inside another one. Links
within the document and web links stay. An indirect action that changes
is written as a new indirect object, except the first action left at the
head of an /A, which is copied into the /A directly when other actions
follow it. Objects that use the old action keep it. An /A with more than
100,000 values to check, or one that opens another document and needs
more than 100,000 values to rewrite, stops the optimization with
OptimizeError::ExternalRefLimit, and so does an outline of more than
100,000 bookmarks.

doc_optimize takes discard_external_refs and reports external_links and
external_bookmarks.
2026-10-24 04:10:32 -07:00
Combiler01 9579a217a8 Fixed 3 Must Fix Bugs 2026-10-24 15:12:26 +05:30
FredApps 1a502a4b4d fix(ci): use pinned fonts and await Sonar quality gate 2026-10-24 11:37:44 +02:00
alehel c16956f539 Merge origin/main into fix/comment-threads-by-irt
main's #4284 stopped hashing translation catalogues in ATTRIBUTION.toml; the
conflict took main's side (no sha256 lines) and kept this branch's source notes.
2026-10-24 11:31:20 +02:00
Dylan M. TaylorandClaude Sonnet 5.5 c894928e6f fix(demo): showcase font-display, distinct link text, SVG accessible names (Sonar) (#4402)
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 04:37:33 -04:00
aiongg afa14c3b98 Merge integration batch A's review fixes 2026-10-24 08:26:10 +00:00
aiongg f9a179fee0 Merge integration batch B's review fixes 2026-10-24 08:26:10 +00:00
aiongg 70404ac310 Integration: format the review-fix tests (#4339) 2026-10-24 08:24:09 +00:00
aiongg 9595f5940c Integration: a script-opened panel reveals a background Inspector tab (#3580)
ShowPanel now queues the same Inspector reveal a user's panel choice does.
2026-10-24 08:24:01 +00:00
aiongg 82eedb6607 Integration: a retained-version optimize reports the later of header and catalog version (#3227)
Object streams raise the header to 1.5 over a lower catalog /Version; pdf_version now reports the version viewers read.
2026-10-24 08:21:14 +00:00
aiongg 29889fc1e0 Integration: list the attachment edit labels for translation (#1960)
"Attach {name}" and "Delete attachment {key}" were missing from EDIT_LABELS, so the translation-gap report left them out.
2026-10-24 08:20:44 +00:00
aiongg 1fb1877923 Integration: attachment_add reads its file through the size-capped reader (#1960)
attachment_add used an unbounded std::fs::read; it now uses read_input like the other file-reading tools, and the oversized-input test covers it.
2026-10-24 08:20:39 +00:00
aiongg be826a3bcd Integration: a short multi-line field accepts the line it draws (#4339)
The fit check required the padded height for every line; it now uses the bound the appearance applies, so a 16 pt field at 12 pt takes one line.
2026-10-24 08:17:01 +00:00
aiongg 06959df890 Integration: execMenuItem requests go through the request cap (#3580)
A script looping on app.execMenuItem could queue unlimited requests; they now follow the same count and byte limits as other requests.
2026-10-24 08:15:46 +00:00
aiongg b04257d5eb Integration: a typed Password-field value stays in the open document after Save (#3943)
Recording a save reopens the saved file, which carries no Password values; they are put back in memory only, so the next save still omits them.
2026-10-24 08:15:01 +00:00
aiongg 8021aee1f8 Integration: the edit composer stays visible while part of its comment is on screen (#4095)
Editing a large comment whose top-right corner was scrolled away opened a composer that was hidden and could not be cancelled. The card now stays, clamped into the document, while any part of the comment shows.
2026-10-24 08:14:45 +00:00
jonathanwxh-cell 4bf28ed735 Merge remote-tracking branch 'upstream/main' into fix/cropbox-text-clipping 2026-10-24 15:54:38 +08:00
aiongg 2208dc16c8 Integration: cargo fmt 2026-10-24 07:32:52 +00:00
aiongg 7685882aa1 Merge integration batch C (track r3-t07) 2026-10-24 07:25:53 +00:00
aiongg 8ce5a3ec96 Merge integration batch A at #2648's updated head 2026-10-24 07:24:24 +00:00
RiceDee dce32fb2ab fix(ui): Redo from the menu with typing in a page box stays in the box
Redo from the menu or toolbar closed the box first, which applied its
typing: a new edit that dropped the document's waiting Redo, and the
Redo itself then failed. The step was gone. Redo now goes to the box as
the key does: what Undo took back there comes back, and typing the page
doesn't have yet stays as it is, with the document's Redo waiting.

A new text box the document refused was put back without the request
to select the item once it exists, which stayed behind. It is put back
with the box.

Carried from #4179 (632ba10e). This branch already routed the menu's
Redo to the box; the test from #4179 covers what its own
redo_from_the_menu_puts_the_typing_back_in_the_box did, so that one
goes.
2026-10-24 18:24:08 +11:00
aiongg 315454d3a9 Merge PR #2648 at its updated head
# Conflicts:
#	crates/engine/src/js.rs
2026-10-24 07:21:13 +00:00
aiongg 35f3fe027e Integration: #3694 a press beneath a menu or dialog does not end Select All
The reset uses pressed_page (unobstructed, pointer over the page) instead of the raw press origin; the test presses with a dialog open.
2026-10-24 07:20:42 +00:00
RiceDee 632ba10ed5 fix(ui): Redo from the menu with typing in a page box stays in the box
Redo from the menu or toolbar closed the box first, which applied its
typing: a new edit that dropped the document's waiting Redo, and the
Redo itself then failed. The step was gone. Redo now goes to the box as
the key does: what Undo took back there comes back, and typing the page
doesn't have yet stays as it is, with the document's Redo waiting.

A new text box the document refused was put back without the request
to select the item once it exists, which stayed behind. It is put back
with the box.
2026-10-24 18:17:48 +11:00
aiongg 2e561bb635 Merge integration batch B (tracks r3-t05, r3-t06) 2026-10-24 07:12:16 +00:00
aiongg 95ec6348c3 Merge upstream main into integration batch A
# Conflicts:
#	crates/ui-egui/tests/it/control.rs
#	crates/ui-egui/tests/it/forms.rs
2026-10-24 07:12:10 +00:00
aiongg 7733b619cf Integration: #3670's fan-out test allows for a loaded machine 2026-10-24 07:11:16 +00:00
aiongg a9fe3d4e7f Integration: drop the doc comment of the removed visit cap (#3670 × main) 2026-10-24 07:11:16 +00:00
aiongg 2a91f1d717 Integration: the page's decode budget owns the form count in redaction (#3670 × main)
#3670 raised the form depth limit to 50 and added its own 50,000-visit cap. Main's
per-page DecodeBudget (e2a677164) has the same 50,000-form limit, and the visit cap
fired first, so Apply removed the forms instead of refusing the page as main does.
The visit cap goes; the fan-out test expects the refusal, and the depth-limit
sanitization test builds its chain from MAX_DEPTH.
2026-10-24 07:11:16 +00:00
aiongg e05dc237bb Merge upstream main into the r3 batch
# Conflicts:
#	crates/ui-egui/tests/it/forms.rs
2026-10-24 07:11:15 +00:00
aiongg 2ffcd0f1d1 Merge PR #3694: Select All takes the whole document's text while scrolling continuously (fixes #2639) 2026-10-24 07:10:11 +00:00
aiongg deffc376cf Integration: #2588 keep XMP-only document information across full refreshes
Session::refresh_with_indexes fills title, author and the other fields from XMP as build_document does; the test applies an edit and an undo and checks they stay.
2026-10-24 07:10:11 +00:00