Commit Graph
6466 Commits
Author SHA1 Message Date
Dylan M. Taylor 163a44bdea fix(create): report invalid PNG fixture through allowed test panic 2026-11-14 15:16:45 -05:00
Mex 3df300cdbc fix: adapt migrated automation image assertions without lint warnings 2026-11-14 21:09:22 +01:00
Mex 5b5912fa3a fix: use array chunks for migrated signature pixels 2026-11-14 21:03:39 +01:00
Mex b905a2e06f fix: remove remaining XFDF migration lint failures 2026-11-14 20:58:19 +01:00
Mex 83157959db fix: pass existing image extension reference to DOCX MIME lookup 2026-11-14 20:57:55 +01:00
Mex 6c0bef6318 fix: pass existing image extension reference to PPTX MIME lookup 2026-11-14 20:57:43 +01:00
Mex 168427e476 fix(xfdf): initialize strict XML policies directly 2026-11-14 20:43:39 +01:00
Mex 4e2a02fbe1 fix(engine): remove redundant signature image option defaults 2026-11-14 20:43:33 +01:00
Mex f404a891ee fix(create): initialize upright image options completely 2026-11-14 20:43:09 +01:00
Mex 89921b7088 fix(create): remove redundant codec option defaults 2026-11-14 20:43:02 +01:00
Mex 9c06eef26a fix(xfa): initialize strict XML and doctype policies directly 2026-11-14 20:20:13 +01:00
Mex d47a987e4c fix(xfa): initialize stripping parser options completely 2026-11-14 20:19:47 +01:00
Mex b45fcae35d fix(xfa): initialize template parsing options completely 2026-11-14 20:19:33 +01:00
Mex d158760043 fix(xfa): initialize path parsing options completely 2026-11-14 20:19:18 +01:00
Mex b429031b7e fix(xfa): initialize merged-packet parsing options completely 2026-11-14 20:18:51 +01:00
Mex 6bdab5d64c fix(xfa): initialize form-data parsing options completely 2026-11-14 20:18:44 +01:00
Mex bc505410f8 fix(xfa): remove redundant defaults from codec options 2026-11-14 20:18:24 +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 346d803080 Merge pull request #7203 from christianlappin/fix/7050-macos-save-xattrs
Fix macOS saves for PDFs with extended attributes
2026-11-14 17:13:09 +01:00
358e33a307 M7: replacing a line keeps the source font for the words it can show (#2378, re-lands #2955) (#6842)
* M7: replacing a line keeps the source font for the words it can show (#2378) (#2955)

* Fit #2955's line edit to #4514's /ActualText spaces

Since #4514, source_show wraps a run whose spaces the subset lacks in a
/Span /ActualText BDC ... EMC, so the moves standing in for those spaces
read back. #2955's two-font /PCEdLine path writes its source runs through
source_show, so they now carry that span too. Three of its tests were
written against the operator stream from before that:

- replacing_a_mixed_font_line_again_replaces_its_sequence counted BMC and
  EMC as the /PCEdLine sequences alone. It now also counts each edit's
  own /ActualText spans (BDC, and EMC = sequences + spans), so a sequence
  that nests or survives a re-edit still fails it.
- a_leading_space_does_not_make_a_source_font_run looked for the leading
  move right after the Tf; it now sits inside the run's span.
- a_row_replaced_inside_a_shared_sequence_starts_in_its_own_font put its
  second row before the first EMC, which is now the span's: the row was
  read as part of the span's text. It now goes before the EMC that closes
  /PCEdLine, the case the test describes. A paragraph rewrite drops an
  /ActualText span with its line (the span's BDC and EMC are among the
  line's operators), so it never leaves a row inside one.

The code needs no change: re-editing drops the spans inside a /PCEdLine
sequence with it (BDC/EMC are in the dropped set), and a span's merged
run keeps the sequence it is in, so the line still reads back as one.
Also drops the same_font import lines.rs no longer uses.

* Tests: fit #2955's three line-edit tests to #4514's /ActualText spans

* Tests: the replaced sequence's check allows the new text's own /ActualText span

---------

Co-authored-by: mtlcl410 <2368091+mtlcl410@users.noreply.github.com>
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-14 13:25:27 +01:00
FredApps dd6c625274 Merge pull request #4417 from FredApps/fix/sonar-fonts-quality-gate
fix(ci): use pinned fonts for Sonar coverage
2026-11-14 12:16:14 +01:00
Dylan M. Taylor e98dc1712c Merge pull request #7261 from storytold/craftlibs-deep-cutover
Move remaining file formats and codecs to craft-libs (#778)
2026-11-13 23:29:36 -05:00
Dylan M. Taylor b7ffe8732f xtask, export: update attribution, parity evidence, and RTF test for craft-libs cutover 2026-11-14 04:29:32 +00:00
Dylan M. Taylor bd2120909a cos: retain pdfcraft-crypt and pdfcraft-filters in dev-dependencies 2026-11-14 04:10:43 +00:00
Dylan M. Taylor 937c3fc7e1 print: initialize driver_settings on craft-print Job 2026-11-14 04:10:10 +00:00
Dylan M. Taylor ed18238d74 crypt, filters, cos, export, xfdf: migrate to craft-pdf, craft-rtf, craft-csv 2026-11-14 04:02:21 +00:00
Dylan M. Taylor 524d9f6b64 prc: remove crates/prc and cut over to craft-prc (#778) 2026-11-14 03:44:47 +00:00
Dylan M. Taylor 9475e50cf1 Merge pull request #7260 from storytold/feat/pdfcraft-craftlibs
export: migrate zip writer to craft-zip (#778)
2026-11-13 22:12:33 -05:00
Dylan M. Taylor 93a5e1545a export: migrate zip writer to craft-zip (#778) 2026-11-14 00:06:39 +00:00
FredApps e2c90c33cb sonarcloud: use the craft-fonts commit the gate and the release use 2026-11-13 20:53:28 +01:00
FredApps 616c71492d Merge branch 'main' into fix/sonar-fonts-quality-gate 2026-11-13 20:43:14 +01:00
FredApps 0f22627bff Merge pull request #7144 from FredApps/port-2081
Link JavaScript actions and app.openDoc (port of #2081)
2026-11-13 19:47:48 +01:00
FredApps 0aed40d670 Merge branch 'main' into port-2081 2026-11-13 19:45:32 +01:00
FredApps c83c9ddb90 Merge pull request #7202 from Ethunxxx/fix/recent-reveal-test-race
test(ui): run the Home recent Reveal test inline so its toast check can't race
2026-11-13 19:45:11 +01:00
FredApps 2a639868dd Merge branch 'main' into port-2081 2026-11-13 18:59:56 +01:00
FredApps 1771844b84 fix(link-js): address the review on the #2081 port
- A link that fails puts the realm's timers back as they were before its
  own script ran, and turns no layer: timers it set are dropped, timers it
  cleared come back (timers::save/restore in Realm::run_job).
- In a read-only document a link's requests still apply when its field
  changes can't; the outcome carries the read-only error.
- app.openDoc during a calculation (calculateNow) is noted on the console
  and not queued, as for a field script running on its own.
- Link script streams are decoded once per stream, whatever their source
  length, and /Filter [] reads as the raw source.
- The web build sets the view's zoom, page and highlight before a link
  script runs, as the desktop does.
2026-11-13 18:48:33 +01:00
FredApps 8034990072 Merge pull request #7141 from FredApps/fix-openssl-ia32cap
fix(startup): an OPENSSL_ia32cap naming a missing CPU feature no longer stops PdfCraft (#2916)
2026-11-13 17:31:17 +01:00
FredApps ec31c55763 fix(ocr): main builds on Windows again: the executable check is its own function per platform (#7222)
Since Rust 1.100, clippy's needless_bool refused program_is_executable on Windows: with the
#[cfg(unix)] block gone it read if ... { return false; } true, and the Windows gate failed on
every main commit since 13 Nov 09:38. The check is now one expression with the platform part
in has_execute_permission; behaviour is unchanged on every platform.
2026-11-13 16:28:29 +01:00
FredApps e6730be289 test: scope CPU override regressions to supported platforms 2026-11-13 14:08:57 +01:00
FredApps fd4d60ff4a CI: use the shared git-sources check (#7042)
ci.yml ran its own copy of the git-sources job; it now calls
craft-common-actions git-sources.yml, under the same full-ci label rule.
2026-11-13 14:04:39 +01:00
Dylan M. Taylor 785e7e510c fix(forms): finding the first character a simple font cannot hold encodes the whole string once, then each distinct character once (#7047) 2026-11-13 12:23:58 +01:00
Dylan M. Taylor b167422b2e fix(sign): every signature's VRI entry shares the store's evidence arrays instead of copying them (#7038) 2026-11-13 12:22:54 +01:00
Dylan M. Taylor b0607f5cd3 fix(optimize): a destination name given by reference is copied once however many dictionaries name it (#7035)
* fix(optimize): a destination name given by reference is copied once however many dictionaries name it

* fix(optimize): aliases of one destination-name object are copied once
2026-11-13 12:21:26 +01:00
Christian Lappin 11a7f02cc0 Fix Finder association attribute sizing on macOS 2026-11-13 05:58:15 -05:00
Christian Lappin d6579c2bef Fix macOS extended attribute sizing during save 2026-11-13 05:58:15 -05:00
Richard Buschbeck 7f754fc9fd test(ui): run the Home recent Reveal test inline so its toast check can't race
home_recent_context_menu_reveals_the_target_without_opening_or_removing_it
never set run_inline, so reveal_path checked the missing file on a
pdfcraft-reveal worker thread while the test waited a fixed three frames
before asserting the "The file no longer exists" toast. On a loaded runner
the worker can report after those frames and the assertion fails. Set
run_inline, as the reveal unit test in tab_context.rs already does.
2026-11-13 11:40:55 +01:00
FredApps 0c15e3de71 Merge pull request #7115 from jonathanwxh-cell/fix/measure-compound-number-formats
fix(measure): read compound and fractional measurement number formats (ISO 32000-2 12.9.2)
2026-11-13 10:38:39 +01:00
FredApps 623c53f887 Merge pull request #7073 from mtlcl410/fix/test-moddate-second-boundary
fix(tests): saves compared byte for byte don't fail when the clock crosses a second between them
2026-11-13 10:37:57 +01:00
FredApps eb2a2eddac Merge pull request #7056 from mtlcl410/perf/form-edit-reads-fields-once
M7: a form edit reads the document's fields once (form.fill-text)
2026-11-13 10:37:09 +01:00
FredApps a080e1ff27 Merge pull request #7053 from mtlcl410/fix/lone-sign-token
fix(hayro-syntax): a lone sign in a dictionary or array is unreadable, not a panic
2026-11-13 10:32:49 +01:00