aiongg
a805abe762
refactor(render): split raster.rs into raster/
...
New module: pool (the render worker pool).
2026-10-26 22:18:50 +00:00
aiongg
b24c2b9b64
refactor(render): split text.rs into text/
...
New modules: device, layout, order.
2026-10-26 22:18:50 +00:00
aiongg
faf57b4755
refactor(render): split inspect.rs into inspect/
...
New modules: core, annotations, resources, navigation, model. The small test modules
(version_tests, open_action_javascript_tests, substitution_tests, open_dest_tests) moved with the code they test.
2026-10-26 22:18:50 +00:00
aiongg
ef3fcbce02
test(ui-egui): list the comments/ modules in PAGE_MODULES
2026-10-26 22:18:50 +00:00
aiongg
daba10be67
docs(parity): point evidence at panels' moved tests
2026-10-26 22:18:50 +00:00
aiongg
84719980bb
refactor(ui-egui): split dialogs.rs prompts into dialogs/
...
New module: prompts (fn dialogs stays in dialogs.rs).
2026-10-26 22:18:50 +00:00
aiongg
310dfc883a
refactor(ui-egui): split panels.rs into panels/
...
New modules: tools, edit, right, bookmarks, pages.
2026-10-26 22:18:50 +00:00
aiongg
f7c23ffed3
refactor(ui-egui): split comments.rs into comments/
...
New modules: state, geometry, input, paint, composer, menu (tests.rs already existed).
2026-10-26 22:18:50 +00:00
aiongg
978bc28da8
refactor(cli): split main.rs into src/
...
New modules: options, commands, check, run, ui.
2026-10-26 22:18:50 +00:00
aiongg
a891dfebb2
refactor(automation): split a11y.rs into a11y/
...
New modules: a11y/ocr, a11y/documents, a11y/form_tools (JS and form-action tools).
2026-10-26 22:18:50 +00:00
aiongg
3370aebb6c
refactor(automation): split lib.rs into src/
...
New modules: error, dispatch, documents, assemble, pages, paths, json.
lib.rs keeps Automation, its builders, mod lines and pub use lines.
2026-10-26 22:18:50 +00:00
aiongg
21c1c917a5
test(automation): skip use lines in the file access scan
2026-10-26 22:18:50 +00:00
aiongg
b51aee6153
refactor(engine): split edit.rs into edit/
...
New modules: edit/labels.rs (labels, impl Edit, add_annotation, plural), edit/run.rs (check_permission, EditCtx, run_edit).
2026-10-26 22:18:50 +00:00
aiongg
d84f8baf9d
refactor(engine): split session.rs into session/
...
New modules: session/view.rs, session/editing.rs, session/save.rs, session/files.rs (all impl Session methods).
2026-10-26 22:18:50 +00:00
aiongg
f64ee67181
docs(parity): point evidence at combine_ui's moved tests
2026-10-26 22:18:50 +00:00
aiongg
0988209798
refactor(xfa): split pdf.rs into pdf/
...
New modules: helpers, strip.
2026-10-26 22:18:50 +00:00
aiongg
3da49321f2
refactor(xfa): split layout.rs into layout/
...
New modules: items, helpers, pages, flow, measure, draw, field.
2026-10-26 22:18:50 +00:00
aiongg
4e278cb5fc
refactor(xfa): split data.rs into data/
...
New modules: path, dates, values, build, merge, write, import, passwords.
2026-10-26 22:18:50 +00:00
aiongg
0af6cf2418
refactor(print): split lib.rs into error, settings, sheets, imposition
...
New modules: error.rs, settings.rs, sheets.rs, imposition.rs.
2026-10-26 22:18:50 +00:00
aiongg
703efef6cc
refactor(export): split lib.rs into layout, as_html, as_docx, as_rtf
...
New modules: layout.rs (data types and layout analysis), as_html.rs, as_docx.rs, as_rtf.rs.
2026-10-26 22:18:50 +00:00
aiongg
cc9b5057bf
refactor(redact): split interp.rs into interp/
...
New modules: interp/layers.rs (hidden-layer handling), interp/prune.rs (resource pruning and unlinking).
2026-10-26 22:18:50 +00:00
aiongg
e4abf5b5dc
refactor(engine): split lib.rs's helpers into doc_state.rs and clock.rs
...
New modules: clock (local_utc_offset, parse_ymd), doc_state (ImageEdit, merge_data_files, SplitPart, DocId, LOW_RESOLUTION_PRINT_DPI, render_threads, RecoverySnapshot, renderer_password, writable, guard, signatures_of, OptimizeReport).
2026-10-26 22:18:50 +00:00
aiongg
6dcd93ab1d
refactor(engine): move the re-exports from reexports.rs into lib.rs
2026-10-26 22:18:50 +00:00
aiongg
09d75f7757
refactor(ui-egui): split combine_ui.rs into combine_ui/
...
New modules: files, view, table, parts, session, actions (tests.rs moved in the previous commit).
2026-10-26 22:18:50 +00:00
aiongg
d558972e78
refactor(ui-egui): move combine_ui tests to combine_ui/tests.rs
2026-10-26 22:18:50 +00:00
aiongg
58c5799e3f
refactor(organize): split import.rs into import/
...
New modules: import/copy.rs, import/fields.rs, import/combine.rs, import/carry.rs.
2026-10-26 22:18:50 +00:00
aiongg
6ab1820bae
refactor(xfdf): split lib.rs into common, xfdf, fdf
...
New modules: common.rs, xfdf.rs, fdf.rs.
2026-10-26 22:18:50 +00:00
aiongg
0bcf83d474
refactor(forms): split af.rs into af/
...
New modules: af/script.rs, af/calc.rs, af/format.rs.
2026-10-26 22:18:50 +00:00
aiongg
22c85d3679
refactor(forms): split author.rs into author/
...
New modules: author/tree.rs, author/look.rs, author/edit.rs, author/lifecycle.rs.
2026-10-26 22:18:50 +00:00
aiongg
4362d705e6
refactor(forms): split lib.rs into read, tab_order, values, appearances
...
New modules: read.rs, tab_order.rs, values.rs, appearances.rs.
2026-10-26 22:18:50 +00:00
aiongg
676b30d83c
refactor(ui-egui): split sign_ui.rs into sign_ui/
...
New modules: dialog, panel.
2026-10-26 22:18:50 +00:00
aiongg
ce5d36e470
refactor(ui-egui): split prepare.rs into prepare/
...
New modules: draft, properties, tabs.
2026-10-26 22:18:50 +00:00
aiongg
eb69f95efe
test(ui-egui): list edit_text_ui/image.rs among the page modules
2026-10-26 22:18:50 +00:00
aiongg
c83a42144a
refactor(ui-egui): split edit_text_ui.rs into edit_text_ui/
...
New modules: background, layout, image.
2026-10-26 21:17:18 +00:00
aiongg
36917232ba
refactor(cos): split document.rs into document/
...
New modules: state, xref, open, objects, reader.
2026-10-26 21:17:18 +00:00
aiongg
61c9164037
refactor(ui-egui): split control.rs into control/
...
New modules: plugin, requests, screenshot, pending, host, transport (non-wasm).
transport_tests and screenshot_geometry_tests move with their code;
lifecycle_tests and pointer_tests stay.
2026-10-26 21:17:18 +00:00
aiongg
7cf7d1338b
test(ui-egui): point the page-pointer source scan at canvas/*.rs
2026-10-26 21:17:18 +00:00
aiongg
41a525eee3
refactor(ui-egui): split canvas.rs into canvas/
...
New modules: find, selection, cache, zoom, navigation, xform, organize, bars, area.
fn document_area stays in canvas.rs this round.
2026-10-26 21:17:18 +00:00
aiongg
d69b566db6
refactor(ui-egui): split app.rs into app/
...
New modules: app/files, links, input, keys, clipboard, window, prefs, commands, control, frame (frame holds panel_migration_tests).
2026-10-26 21:17:18 +00:00
aiongg
5e61134225
refactor(ui-egui): split lib.rs into app.rs, state.rs and hooks.rs
...
New modules: app (construction, queries, eframe::App, and every impl PdfCraftApp group, split further next), state (UI state types, OpenRequest, OpenOutcome, GridFile, CopyPage, DocumentCopyJob), hooks (host-hook types). PendingOpen, GridDrop and DocumentCopy stay in lib.rs as app struct field types.
2026-10-26 21:14:39 +00:00
vangel76 and Claude Sonnet 5.5
929d350f1d
perf(cos): write hex strings, integers and references without the formatter
...
serialize wrote every byte of a hex string, every integer and every object
number through write!. A table lookup and a small digit loop give the same
bytes in a fraction of the instructions. The octal escape in literal strings
and the #xx escape in names use the same helpers.
Fixes #4870
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-26 22:00:43 +01:00
vangel76 and Claude Sonnet 5.5
a7baf8a2af
perf(cos): write_full keeps the objects it parsed while numbering
...
write_full parsed each object once to number it and again, after the
128-object reader cache had dropped it, to write it. Keep the parsed object
from the traversal and write that, within a budget of 64 MiB of owned bytes
and 2M tree nodes; past it the object is read again as before, which keeps
the memory bound and the "read differently while saving" check.
Fixes #4869
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-26 21:59:12 +01:00
vangel76 and Claude Sonnet 5.5
be8345aa3f
perf(cos): rebuild a damaged cross-reference index without parsing every object
...
Reconstruct parsed every object to see whether it is an object stream, and
searched each object's next 1,024 bytes and the whole file byte by byte.
Only objects whose dictionary holds ObjStm or a # (a name can hide letters as
#xx) are now parsed for that check. Every /XRef position is found once, and
find() scans for the needle's rarest byte in 32-byte blocks. The index, trailer
and repair log are unchanged.
Fixes #4868
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-26 21:57:29 +01:00
vangel76 and Claude Sonnet 5.5
fe03703a3b
perf(cos): keep a running total of the scan reader's cache size
...
ObjectReader::try_get measured every parsed object in its cache (up to 128)
after each read to check the byte budget. Keep a running total instead and
measure the whole cache only when something other than one freshly parsed
object changed it. Eviction timing is unchanged, so output is identical.
Fixes #4867
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-10-26 21:55:16 +01:00
aiongg
e2b30ba7b5
docs: name i18n.rs and demo_pdf.rs after the mod.rs moves
2026-10-26 20:51:19 +00:00
aiongg
b1a09ee08d
docs(parity): point evidence at the tests' new files
2026-10-26 20:51:19 +00:00
aiongg
da51747654
test(ui-egui): skip test files in the page pointer scan
2026-10-26 20:51:19 +00:00
aiongg
d39b6629c8
test(pdfcraft): cut main.rs at the moved test module's declaration
2026-10-26 20:51:19 +00:00
aiongg
bc69802ed9
refactor(ui-egui): move control.rs's lifecycle tests to control/lifecycle_tests.rs
2026-10-26 20:51:19 +00:00
aiongg
0457352c23
refactor(engine): move signature_scan.rs's tests to signature_scan/tests.rs
2026-10-26 20:51:19 +00:00