Commit Graph
1498 Commits
Author SHA1 Message Date
Elvis33LEandskylar taylor f785466336 test(ci): consolidate integration tests into tests/it across 6 crates (#9050)
* test(ci): consolidate integration tests into tests/it across 6 crates

* ci: update parity evidence paths for consolidated integration tests

---------

Co-authored-by: skylar taylor <[email protected]>
2026-12-02 15:17:52 -06:00
FredApps dcb2c569a5 Merge branch 'main' into feat/image-page-size 2026-12-02 07:41:28 +01:00
FredApps 2dd24dcdf9 Format with rustfmt after the main merge
Import lists in engine/src/lib.rs and session.rs reflow, and one blank line
goes from the automation tests; no other change.
2026-12-02 13:40:33 +07:00
FredApps 36f0150c42 Merge pull request #3069 from mtlcl410/feat/alpha-hit-testing
M7: pictures are picked where they show, not across their transparent margins (#3005)
2026-12-02 07:19:44 +01:00
FredApps dd90ee980d Merge branch 'main' into feat/alpha-hit-testing 2026-12-02 06:33:04 +01:00
FredApps ca74084fc9 Merge branch 'main' into fix/validate-rejected-value-reverts 2026-12-02 06:32:44 +01:00
FredApps a639547bc9 Merge branch 'main' into feat/image-page-size 2026-12-02 05:45:52 +01:00
FredApps e0580ebaad Merge branch 'main' into feat/sign-ca-checks-and-trust-sets 2026-12-02 05:45:46 +01:00
FredApps 016246e7fc Merge branch 'main' into fix/xfa-message-box-answers 2026-12-02 04:52:18 +01:00
FredApps 1034899e97 Merge branch 'main' into fix/merge-data-quoted-csv-7410 2026-12-02 02:07:03 +01:00
FredApps 74e2e3534d Merge branch 'main' into fix/header-footer-update-5785 2026-12-02 00:41:18 +01:00
jweaver3 7e6326eae5 M7.6: keep an updated header and footer in its place among the others
Update now puts the replacement where the header and footer it replaces
was on each page, instead of on top of every mark added after it, so
marks that overlap stack as they did. The preview draws the page in two
layers around the draft: the marks under it, then the ones over it on a
transparent page, so it still shows what OK will leave.
2026-11-30 07:28:15 -05:00
yusufmntmandClaude Opus 5.5 014f2c74c4 feat(edit): allow custom and Unicode fonts for added text (#4978)
Added text could only use the standard Helvetica, Times and Courier
faces, so characters outside WinAnsi (Greek, Cyrillic, CJK) were
refused. An added text item can now name a page font resource
(`AddedText::font_resource`): it is drawn with that embedded font
(Type 0, Identity-H, wrapped with the font's own advances), kept in
`/PCAdded` across saves, and painted in the item's ink like other text.

The Format text panel offers the page's document fonts, Load font… and
the installed fonts for added text as well as for edited paragraphs; a
pick or a loaded font applies to the draft, the selected added text
(undoable) or the style for the next text. Bold and italic are off for
an explicit font resource.

Rebased onto the craft framework UI port (#8160).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 13:25:28 +01:00
jweaver3 7ad1496871 Merge upstream main into fix/header-footer-update-5785
main replaced the marks dialogs with hosted parameter dialogs
(craft::ui::patterns::form_dialogs), so Update's header and footer
choice (#5785) is ported onto them rather than merged line by line:

- The "Which header and footer:" choice is a choice row (hf.which).
  Picking one fills the dialog in from it; whether the range is still
  the one it filled in travels in the dialog's fields (hf.range_kept),
  so the build pass, the host pass and OK all read the same pages.
- finish_marks refuses an Update read from another document, as
  finish_edits did.
- The page range is craft::pages::PageRange: the preview helpers take
  the pages OK applies to.

FredApps' review: the Update preview took away every header and footer
on the page (doc.without_marks), while OK removes only the chosen one,
so a header and footer OK keeps was missing from the preview. The
preview now takes away only the chosen one (new
Document::without_header_footer over pdfcraft_edit::remove_header_footer,
the removal update_header_footer itself does), and its cache is keyed
by the choice, so choosing another draws the page again. An older
header and footer with no recorded settings is still replaced
page-wide, and previewed that way.

Tests: an engine test and a dialog-level test with two headers and
footers on one page, unit tests for what the preview takes away and
for the fields, and the PR's two UI tests ported to the new harness.
2026-11-29 02:01:50 -05:00
FredApps d1e6a5374b Merge main into fix/merge-data-quoted-csv-7410
Preserve main CSV bytes and carry the distinct field count from the existing XFDF writer through the engine to form_merge_data. Keep the ordinary quoted and empty-header regressions.
2026-11-28 20:43:00 +01:00
FredApps 32dbecde2d Merge remote-tracking branch 'origin/main' into pr-6984
# Conflicts:
#	crates/automation/tests/it/automation.rs
#	crates/engine/src/edit/run.rs
#	crates/engine/src/open.rs
#	crates/engine/src/session/editing.rs
#	crates/engine/src/tests.rs
#	crates/engine/src/xfa.rs
#	crates/engine/src/xfa_form.rs
#	parity/acrobat-features.toml
2026-11-28 08:28:58 +07:00
Thorsten Hirsch 59707b8fac Merge branch 'storytold:main' into feat/sign-ca-checks-and-trust-sets 2026-11-28 00:39:19 +01:00
FredApps e48415fb05 Merge remote-tracking branch 'origin/main' into pr-3331
# Conflicts:
#	crates/automation/src/printing.rs
#	crates/automation/src/tools.rs
#	crates/automation/tests/it/automation.rs
#	crates/create/src/lib.rs
#	crates/create/src/tests.rs
#	crates/engine/src/lib.rs
#	crates/engine/src/session.rs
#	crates/engine/src/session/files.rs
2026-11-28 05:33:55 +07:00
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
mtlcl410 a70473b53f Merge remote-tracking branch 'upstream/main' into HEAD 2026-11-28 00:41:50 +08:00
Thorsten HirschandClaude Sonnet 5.5 4139499ec1 M9: review follow-ups: a trust list is known by its own name, a spliced PEM block is refused
- `TrustStore::set_list(name, Option<list>)` had two sources for a list's name: a list
  loaded as "EU" but named "Other" could not be removed as "EU". Now `add_list(list)`
  uses the list's own name and `remove_list(name)` takes it back (`Session::add_trust_list`,
  `remove_trust_list`).
- `x509::load_certificates` now refuses a PEM block that never ends (upstream, with the
  `.p7b` bundles). A block that begins while another is still open replaced it without a
  word, so a bundle spliced from two cut-short files loaded as the second one only. That is
  an error too; the trust list tests cover a cut inside the last block, a cut after the
  last complete one, and a splice.
- The module docs say why non-CA entries stay in a list: the real EU file has 4 of 875
  (three OCSP responder certificates, one time-stamp signer) under its CA services, so
  refusing them would refuse the real lists. They issue nothing in chain building and
  vouch only for themselves, which the signer checks still judge.

Fallout of rebasing onto the current main: the parity evidence follows the tests into
`tests/it/`, and twelve tests that others added build their `TrustStore` with
`..TrustStore::default()`.
Upstream's rule that a time-stamp authority's certificate must be issued for time
stamping would have kept the time untrusted in our time-stamp test for a second reason;
its authority now has that purpose, so the test checks our rule again (a list never
vouches for a time-stamp authority: it fails if one could) and the user's own
certificate still makes the time trusted. No catalog line and no attribution hash is
touched: upstream no longer gates tests on translations, and the new wording stays
English until translators get to it.

Fallout of rebasing onto the main of Nov 4: `validate.rs` now imports its names one by one, so
`TrustSource` is imported there, and the test time-stamp authority calls `timestamp::respond`
with its new `TimestampSigner` / `TimestampIssuance` arguments.

Fallout of rebasing onto the main of Nov 18: the x509 chain builder takes its pool as an iterator
(upstream now hashes a candidate's issuer once per lookup, which the iterator keeps), the
re-exports gain `TrustSource` next to upstream's `has_signatures`, and eleven more tests that
others added in `pdf.rs`, `encrypted_signing.rs`, `revision_classification.rs` and
`signed_structure.rs` build their `TrustStore` with `..TrustStore::default()`.

Fallout of rebasing onto the main of Nov 26: four more tests that others added in `pdf.rs`
build their `TrustStore` with `..TrustStore::default()`. The ROADMAP progress-log line is
dropped: it was the only file in conflict, and AGENTS.md asks not to edit append-only logs;
the same facts are in `crates/sign/README.md`, the module docs and the `sign.eutl` parity entry.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 23:49:04 +01:00
Thorsten HirschandClaude Sonnet 5.5 8e52c9c3c3 M9: opt-in trust lists (a file of CA certificates, such as the EU Trusted Lists)
A signer can be trusted through a list of CA certificates the user loads from a
file: `sign_trust {"eu_trusted_list": "<path>"}`, DER one after the other or
PEM. Refs #775, #87, #824: the PDF attached to #775, a CAdES signature under a
qualified service that Acrobat validates, is Unknown without the list and Valid
with it.

- The list is off until loaded, nothing is embedded, and it is kept apart from
  the user's own trusted certificates (`TrustStore::lists`). The details name the
  list that vouched. Chains through it still need CA certificates all the way
  (#620) and the signer's own certificate is held to #749's purpose rules.
- A list vouches for signers, never for a time-stamp authority: a CA trusted to
  issue signing certificates is not thereby a source of trusted time, so trusted
  time still comes from the user's own certificates.
- A cut-short or damaged list is refused instead of loading as a smaller one, and
  PEM that starts with text beginning with a "0" (DER's first byte) is read as PEM,
  in `x509::load_certificates` too.
- `sign_trust` reads and checks every argument before it changes anything and
  revalidates the open documents once (`Session::update_trust`); the list path
  stays inside `--root` and the read is bounded.
- `build_chain` takes its pool as an iterator, so a list's certificates are not
  copied for every signature.

`TrustStore` gains `lists`: struct literals need `..TrustStore::default()`.

Tests that fail without their change: the damaged-list and PEM cases
(`trust.rs`), a list that holds a time-stamp authority's certificate not making
its time trusted (`chain.rs`, with the shape of #775), and a bad `sign_trust`
argument changing nothing (`automation.rs`).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-26 23:46:04 +01:00
mtlcl410 c4c22df1b2 Merge main (d492d8890) into feat/alpha-hit-testing 2026-11-27 05:58:33 +08: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
mtlcl410 289e40f158 Merge main (6e910675c) into fix/validate-rejected-value-reverts 2026-11-25 11:46:24 +08:00
mtlcl410 ebc579a595 Merge main (6e910675c) into feat/alpha-hit-testing 2026-11-25 10:31:04 +08: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
alehelandClaude Opus 5.5 a03f35c770 Merge main into fix/xfa-message-box-answers
Brings the branch onto the craft framework UI port (#8160) and the CI
follow-ups after it.

script_dialog.rs: poll_script_dialog keeps main's shape (DocView's zoom()
and current() accessors, the pending `dialog` in place of `prompt`, and
close_script_prompt before discarding or timing out) and carries the PR's
XFA handling over unchanged: an XFA click is not dropped when the view's
zoom or page changes, a dropped XFA click says why, and its no-prompt
backstop is 60 s instead of 10 s.

tests/it/xfa.rs: the PR's tests keep their assertions. The runaway-click
test waits with `until` and reads the notice through main's toast cards
(`says_scripts_are_off(&h)`), and the view-change test reads the zoom with
`zoom()` and sets it through `view.zoom`, as main's tests do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-23 22:46:46 +01:00