Commit Graph
8234 Commits
Author SHA1 Message Date
KenM76andClaude Opus 5.5 cc8bfd60df fix(measure): keep a decimal comma on single-unit scales; one page walk per listing
A single-unit decimal scale was read as plain, which dropped its number
formats and with them a decimal mark other than the point, so angles
(and lengths) were labelled with a point. Such a scale now keeps its
formats. A single-unit scale with a decimal point reads as before.

list looked each angle without /Measure up through scale_at, which
walked the page tree again per angle. It now hands the page it is
already on to the same viewport lookup; scale_at and scale_at_or keep
their signatures and behaviour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-04 10:49:17 -05:00
KenM76andClaude Opus 5.5 df1b18b6ca test(measure): a saved angle takes the decimal mark of the viewport at its first point
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-04 08:06:24 -05:00
KenM76andClaude Opus 5.5 93e866480c fix(measure): save angles without a scale
An angle has no length, so a /Measure on it lets a reader apply the
scale to the vertices and show a length. Angles now carry no /Measure.
Read back, an angle without one takes its decimal mark from the scale
at its first point. set_points also refuses /PCMeasureKind annotations,
since an angle's points are where it measured.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-04 07:54:40 -05:00
KenM76andClaude Opus 5.5 c8847d46c7 docs(measure): the fourth angle point sets the arc radius
The arc always stays in the smaller wedge; the optional fourth point sets
its radius by its distance from the apex, so the arc meets that point only
when it lies inside the wedge. Tool description, angle docs and parity note
now say so.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-04 07:34:46 -05:00
KenM76andClaude Opus 5.5 8f9e8e8c86 fix(measure): refuse an angle its label would show as 0.0
An angle under 0.05 degrees rounds to 0.0 in the one-decimal label, so
`add` now refuses it with MeasureError::AngleTooSmall. Saved angles
below it are still read. The tool text and parity note say 20 user
units, not points.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-04 06:26:06 -05:00
KenM76andClaude Opus 5.5 b56176c0a7 feat(measure): measure the angle between two arms
Adds Kind::Angle and a measure_angle automation tool. The points are an
arm end, the apex and the other arm end, plus an optional point the arc
passes through (default: half the shorter arm, at least 20 points).

The value is the angle in degrees, the short way, in either arm order.
The scale's units and factors are not applied; only its decimal mark is.
The annotation goes through the existing add() as a PolyLine: the three
measured points first, then the arc in 3-degree steps. ISO 32000-2
names no angle intent, so it has no /IT and is marked
/PCMeasureKind /Angle, which list() reads back. measure_info takes
type "angle". Parity entry comment.measure-angle (partial).

Adapted from my own MIT project pdfcer (26059ef4).

Refs #8582

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-04 06:11:56 -05:00
Aleksander HelgakerandClaude Opus 5.5 00efb51d60 fix(ui): the rail's page box fits four-digit page numbers (#9041) (#9042)
The page box takes the rail's width, as the zoom field does, and a
"page/count" position that is wider than the rail breaks after the slash.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-12-04 11:53:51 +01:00
jweaver3andFredApps 23fe7035bf M4: a drawn crop rectangle opens Set Page Boxes to fine-tune before cropping (#5695) (#7793)
* M4: a drawn crop rectangle opens Set Page Boxes to fine-tune before cropping (#5695)

Releasing a rectangle with the Crop tool no longer crops at once. Set Page
Boxes opens with the crop box's margins taken from the rectangle, for that
page alone, so the margins can be typed exactly before OK; Cancel crops
nothing. A double-click still opens the dialog from the page's own box, and
the tool still goes back to Select after one crop.

* fix(crop): Set Page Boxes applies a drawn rectangle to the page it was drawn on (#5695)

A crop rectangle drawn on a page mostly scrolled away (the bottom of one
page above the next) left the next page current: the page shown most
becomes current again once the press is over. Set Page Boxes then
seeded from and cropped that page instead.

The rectangle now carries its page, and BoxesDraft::page names the page
the dialog is for, so seeding, the preview and OK all use the page the
rectangle was drawn on, whichever page is current. Opening the dialog
any other way, OK and Cancel clear it.

* fix(crop): Set Page Boxes forgets the drawn page however it closes, and OK checks it is still there (#5695)

- The page a crop rectangle was drawn on is cleared when the dialog
  closes by any route (OK, Cancel, Escape, a click outside), so opening
  it again some other way, as the control channel does, is for the
  current page.
- OK resolves the page as the dialog shows it (BoxesDraft::page_or):
  one deleted while the dialog is open gives way to the current page,
  so what is shown and what is changed stay the same page.

* fix(ui): a crop rectangle's Set Page Boxes draft stays with its document

A rectangle drawn with the Crop tool seeds Set Page Boxes for its page,
but the dialog and OK read the active document. Another document
coming forward while it was open (the system opening a file already in
a tab focuses that tab) showed the draft over that document, and OK
cropped its page of the same number. The draft now records the
document it was drawn in; while another one is active the dialog
closes and OK applies nothing.

---------

Co-authored-by: FredApps <[email protected]>
2026-12-04 11:35:20 +01:00
40c0271fba Limit text comparison to selected pages (#6507)
* Limit text comparison to selected pages

Comparing every page is slow and noisy for large documents when only one page changed. Scoping the diff to chosen pages makes the result focused and faster.

Add an optional pages argument to doc_compare and Session::compare_pages that filters both documents' words to the listed 1-based pages before running the existing comparison, keeping Session::compare unchanged for all pages.

Test: compare_pages_limits_text_comparison failed before the change and passes after.

* Repair review branch integration

* Tighten the change after a final review

* Tighten the change after a final review

* Address review for pull request 6507

* Format the files this pull request changes

* Address remaining review requests

* Align compare and automation changes with the current main

* Format the deletion-mark regression test

* Address review for pull request 6507

* Repair review branch integration

* Repair review branch integration

* Update the annotation tests for the new Style, SaveOptions, LinkAction and Shape fields

* Format the files this pull request changes

* Format the files this pull request changes

* Select the compared pages in the split document tools and restore main's text elsewhere

* Drop the PDF/A verification test that belongs to another change

* Address review for pull request 6507

* Format the files this pull request changes

* Repair review branch integration

* Tighten the change after a final review

* Tighten the change after a final review

* Repair review branch integration

* Address review for pull request 6507

* Format the files this pull request changes

* Address review for pull request 6507

* Format the files this pull request changes

* Tighten the change after a final review

* Tighten the change after a final review

* Repair review branch integration

* Repair review branch integration

* Tighten the change after a final review

* Repair review branch integration

* Tighten the change after a final review

---------

Co-authored-by: eliets2 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 11:14:53 +01:00
54865fd623 fix(measure): reject an out-of-range page and a negative or huge snap tolerance (#7435)
* fix(measure): reject an out-of-range page and a negative or huge snap tolerance

* review: validate the snap tolerance before reading geometry (coderabbitai/validation after extraction)

* review: raise the measure_snap tolerance schema to the runtime bound (coderabbitai/schema maximum)

* review: keep the 10000-point measure_snap tolerance bound in schema and handler

---------

Co-authored-by: gmrmad1 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 11:09:19 +01:00
cd5c601357 Edit text: Bold, Italic and other format changes keep the selected word selected (#8596)
* fix(edit): Bold and other format changes keep the selected word selected

Applying a format to the open paragraph cleared its selection, so the
editor showed a caret at the end of the text and the next letter typed
landed there instead of replacing the selected word. refresh_source
already drops the selection when the rewritten text differs, so
applied() no longer clears it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(edit): the format panel follows the kept selection after a font change

format_panel_shows_selection_size_and_updates_after_font_applied read
"Mixed" right after applying Times to a selected word, which only held
because the selection was dropped. It now checks the selected word reads
Times, then collapses the selection to a caret before reading the whole
block as Mixed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: KenM76 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 10:53:59 +01:00
Dylan M. TaylorandFredApps 4228044d87 fix(ui): closing a side panel keeps its rail icon (#8831)
A side panel's tab close, Close Group and Close Others took panels out of
the dock layout, and with them their rail icons, so Comments, Bookmarks,
Tags and the rest could not be opened again from the rail. A close now
collapses the rail to its icons, as clicking the open panel's icon does.

Co-authored-by: FredApps <[email protected]>
2026-12-04 10:18:38 +01:00
8b956258bd ui: Set Page Boxes preview fills the room above the buttons and resizes with the dialog (#9076)
* ui: Set Page Boxes preview fills the room above the buttons and resizes with the dialog

The preview was a fixed 72x96 sample in a dialog that could not be
resized. It now takes PictureSize::Fill inside a full-width stack, and
its slot runs from its top down to the body's end, which the dialog's
footer closure records in temp memory under the dialog's layer (the top
of the footer's content less the section gap). The row is laid out
before the footer, so it reads the previous pass's value (a live edge
drag lags by one pass and settles on release); with nothing stored yet
the slot takes its 120 floor. The slot height is floored to whole
points so a fractional start doesn't overflow the body.

The dialog is resizable, opens at 560x860 and has a least size of
420x640: at 420 wide the fields take 445 above the preview and the
footer 58 below it, so 623 is the least that keeps the 120 floor. A
window shorter than that clamps the dialog and the body scrolls.

Tests: the preview fills the room at the default size, at the 150%
interface size, through drags down to the least size (with "Pages from"
selected), and scrolls into view in a 1920x560 window.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(ui-egui): ask for the pass that reads the page-boxes body end

The preview sizes itself from the body end the footer stored in the pass
before, but storing it did not schedule that pass, so with nothing else
asking for a frame the preview could stay at its least size until input.
The footer step now requests a repaint when the stored end is new or has
moved by half a point or more.

Tests: a_new_body_end_asks_for_the_pass_that_reads_it pins the request
(fails with it removed); set_page_boxes_preview_fills_the_room_on_first_open_without_input
opens the dialog and runs only the frames the app asks for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9

---------

Co-authored-by: KenM76 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 10:11:33 +01:00
fae6ae474b fix(organize): preserve indirect page label styles and starting numbers (#8647)
* fix(organize): preserve indirect page label styles and starting numbers

* Bound shared page-label reference lookup work

Charge each reference lookup to the existing shared traversal budget and test repeated scalar aliases before any mutation.

* parity: list the scalar-reference budget test as number_pages evidence

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(organize): cap written label trees by the reader's cost

The reader charges a tree written by set_page_label_ranges for the node,
its reference, each entry and each entry's indirect label dictionary:
2 + 2N. The writer refused only N >= MAX_LABEL_TREE_WORK, so it could
write a tree it then refused to read. Both the writer and the
extract/delete merge now check the same cost before changing anything.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: royalgardist <[email protected]>
Co-authored-by: KenM76 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 09:51:00 +01:00
2679cf1863 fix(redact): Sanitize removes page thumbnails with private data (#6749) (#6766)
* fix(redact): Remove Hidden Information's private data takes page thumbnails (#6749)

A page's /Thumb is a picture of the page as it was, but Sanitize and Remove
Hidden Information left it, so a sanitized file still showed what had been
removed from the page. Strip /Thumb with the other private data keys, so the
category counts and removes it and Sanitize does too.

* fix(redact): take /Thumb from page dictionaries only

/Thumb is a page's entry. Elsewhere it can be a name a producer chose, such as
a collection item's field, so sweeping it like the other private data keys
would count and remove that data too. Count and remove thumbnails per page
instead.

* fix(redact): find thumbnails on pages the page walk does not reach

The page walk stops at its node and copy limits and never visits a page
outside the tree, yet a full save still writes such a page when a
destination names it, thumbnail included. Look at every object of the file
that says it is a page as well.

* fix(redact): Sanitize removes the thumbnail of a typeless page leaf the page walk never reached (#6749)

The page walk stops at its limits, and a leaf of /Kids without /Type /Page is then
found by neither the walk nor the /Type scan, so a full save kept its /Thumb.
page_thumbnails now also takes every leaf that a /Kids array names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(redact): Private data takes /Thumb only from the leaves of page tree nodes (#6749)

The /Kids fallback read /Kids from every dictionary, so a widget named by a form
field's /Kids that carried its own /Thumb entry was counted as a page thumbnail
and removed. Only the children of a node with /Type /Pages, or reached from the
catalog's /Pages, count, and a child whose /Type is not /Page does not.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(redact): Private data skips a page tree leaf whose /Type is not /Page (#6749)

The leaves from the page walk were kept whatever their /Type, so an annotation
named by a page tree's /Kids lost its own /Thumb entry, which the /Kids fallback
already left alone. Both now take only a leaf with no /Type or /Type /Page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 09:42:28 +01:00
e9200b2c5a fix(ui): dismissable signature problem banner (#8637) (#8641)
* fix(ui): dismissable signature problem banner (#8637)

The "At least one signature has problems." banner cannot be dismissed, so it takes up screen space indefinitely (#8637).

Adds a Dismiss (x) button to the signature status bar, matching every
other notice bar (disk-changed, cut-pages, lock-offer, secured/form).
Dismissal persists for the document across redraws and reloads.

- canvas.rs: add signature_dismissed field to DocView, initialized and
  carried over on document replacement.
- bars.rs: signature banner gets the same Dismiss button as the other
  notice bars.
- tests/it/signing.rs: the_signature_problem_banner_can_be_dismissed
  asserts the banner shows after signing, disappears on Dismiss, and
  stays gone on redraw.

Fixes #8637.

* fix(ui): dismissing the signature banner reveals the notices behind it (#8637)

A dismissed signature banner returned before the form, security and
warning notices were evaluated, so on a signed form the notice area went
empty and the form notice's Highlight fields control was unreachable.
Skip only the dismissed banner and let the remaining notices show; a
changed signature state still brings the banner back.

Adds a signed-form regression test: after dismissal the form notice and
its field-highlight control show and stay, and trusting the signer
brings the signature banner back in front.

---------

Co-authored-by: FredApps <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 09:08:52 +01:00
d5bdac7b21 fix(fonts): several fsType embedding bits resolve to the least restrictive (#8659)
* fix(fonts): several fsType embedding bits resolve to the least restrictive

What was wrong: validate() refused every font with the Preview & Print bit
(0x0004) set, even when the Editable bit (0x0008) is set too. Fonts in the
wild set several of bits 1 to 3: every TeX Gyre and Latin Modern face carries
fsType 0x000C, so none of them could complete a source subset or be loaded
for Edit text.

What changed: permits_editable_embedding() applies the OpenType rule. For
OS/2 versions 0 to 2 the specification says the least restrictive of several
bits takes precedence, and Restricted takes effect only when the
sub-field is exactly 2. So Editable wins over Preview & Print and Restricted;
Restricted alone, Preview & Print alone and Bitmap-only (0x0200) still refuse.

* docs(fonts): say the fsType rule ignores the OS/2 version

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Christian Dietrich <[email protected]>
Co-authored-by: KenM76 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
v0.23.2-nightly.20261204.47294886849.1.gd5bdac7b2151
2026-12-04 09:00:40 +01:00
26e88babe9 M3: an attachment's declared size is shown beside its counted size when they differ (view.attachments-panel) (#8594)
The attachment listing preferred /Params /Size (ISO 32000-2 §7.11.4) to
the bytes an unfiltered stream holds, so a file declaring 999,999 bytes
over 10 was listed as 999,999, and a negative /Size was cast `as usize`.

Unfiltered streams are now counted, and a /Size that disagrees is kept as
Attachment::declared_size; a filtered stream keeps its declared size,
unchecked, since counting it would mean decoding it. An empty /Filter
array counts as unfiltered; a /Size that is not a non-negative integer
is ignored. doc_info gives declared_size, and the Attachments panel row
says "the file says N" beside the counted size.

Render tests pin the counted/declared pairs for lying, honest, absent,
negative, filtered and empty-filter cases; an automation test checks the
same through doc_info. All three fail with the old reading.

Co-authored-by: KenM76 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 08:50:54 +01:00
d9926554ae fix(organize): drop bookmarks of deleted pages (#2902) (#8646)
* fix(organize): drop bookmarks of deleted pages

Deleting a page used to strip the destination from its bookmarks but leave
them in the outline, pointing nowhere. A bookmark that ends up with no
destination and no children is now taken out of the outline; one with
children stays as a heading for them.

Fixes #2902

* fix(organize): cascade orphan bookmark removal

Decide orphans by a fixpoint over the items that lost their
destination, so a parent whose children all go is removed too.
Use a HashSet in unlink_items.

* fix(organize): drop headings emptied by later deletes

Pick orphan candidates among all destinationless outline items,
so a heading kept by an earlier deletion goes once its last child
does.

* fix(organize): prune only bookmarks this deletion emptied

The orphan pass took every outline item with no /Dest or /A as a
candidate, so any delete_pages call, and every replace_pages call
(which ends by deleting its temporary copies), removed bookmarks that
never had a destination. Seed the pass with the items whose
destination this call removed; a destinationless heading still goes
once every child of it goes, so the cascade and the later-deletion
case keep working.

Tests: a placeholder bookmark and a destinationless heading over a
placeholder survive delete_pages and replace_pages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* perf(organize): prune emptied bookmarks with a work queue

The repeat-until-stable loop rescanned every outline item once per level
removed, so a deep chain cost depth x items. Each item now counts its
children still present; the queue starts from the bookmarks this
deletion stripped and each removal notifies its parents, so the work is
linear in the outline. The rule is unchanged, and a deletion that strips
no bookmark returns early. A 2,000-level chain test guards the cascade
(about 4 s on the old loop).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* refactor(organize): move bookmark pruning into its own function

Keeps drop_destinations_to under 80 lines; no behaviour change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* perf(organize): walk the outline once when pruning emptied bookmarks

prune_emptied and unlink_items walked each item's children with a fresh
seen set, so K items whose /First all lead into one chain of M items cost
K x M time, and prune_emptied kept K x M parent entries. outline::tree
walks the outline once with one shared seen set and lists each item under
one parent, the first in listing order, so the counts, the parent links
and the relinking are linear. A parent whose /First or /Last still leads
to a removed item it does not own in the walk is relinked too, so no link
reaches a removed bookmark.

deleting_a_page_under_headings_sharing_one_chain_stays_linear: 4,000
headings sharing one 4,000-item chain to the deleted page. 0.11 s with the
change; 13.5 s and a failed 3 s bound with lib.rs and outline.rs reverted;
with only the /First-/Last relink reverted, the chain stays listed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: ROSA John <[email protected]>
Co-authored-by: KenM76 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 08:50:26 +01:00
01eedd566c M5: All tools ▸ Add comments lists Attach file (#8172) (#8553)
The Add comments tool group did not list comment.attach, so the only
Attach file in All tools was Edit a PDF's, which attaches the file to
the document with no icon on any page. List the comment tool under
Add comments ▸ Markup, with the label and icon the quick toolbar
already uses.

The UI test opens Add comments, clicks the Attach file row, clicks the
page and answers the picker, and checks that a FileAttachment comment
sits at the clicked spot. It fails with the catalogue line removed.

Co-authored-by: KenM76 <KenM76>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 08:43:23 +01:00
1e1cc4615c fix(xfa): read unit-less template measurements as inches (#8397) (#8499)
XFA 3.3 §Measurements: a length with no unit is in inches, so h="1"
equals h="1in" and <font size="1"/> is a one-inch font. measure() read a
bare number as points. Template attributes now take inches; rich-text
CSS font-size keeps reading a bare number as points (measure_css).

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 08:40:32 +01:00
Aleksander HelgakerandFredApps 255ea3724d fix(print): report dimensions of images inside forms (#7742) (#7748)
* fix(print): report dimensions of images inside forms

* fix(print): preserve low-PPI findings for shared and extreme image uses

* Keep print image measurements consistent across placements

* Measure direct image PPI after scaling by UserUnit

* Deduplicate direct image reports by placement origin

---------

Co-authored-by: FredApps <[email protected]>
2026-12-04 08:26:17 +01:00
jweaver3andFredApps e11f2870b8 fix(js): a repeating subform's _name resolves to the nearest match in XFA scripts (#8882) (#8883)
Co-authored-by: FredApps <[email protected]>
2026-12-04 08:03:33 +01:00
12ca75d960 fix(edit): list Form artwork whose BBox names other corners (#8906)
Fixes #8903.

Co-authored-by: quincy-jc <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 08:03:02 +01:00
Terra854andFredApps a9b6dc8737 Keep original PDF dates for comment timestamps (#8958) (#8978)
Co-authored-by: FredApps <[email protected]>
2026-12-04 08:02:34 +01:00
8285b34bee Print remembers Reverse pages for each printer (#9031)
* Remember Reverse pages for each printer

A printer that stacks its output face up needs Reverse pages every time,
but the Print dialog reset it with each job. It now belongs to the
printer's remembered setup (#2001), next to its paper, page sizing and
two-sided choice, and is saved in the same place.

It comes back when the printer is chosen and when the dialog opens on
the printer it had last time. Settings saved before this keep every
printer's setup, with the pages in order. Odd and even pages, copies
and the pages to print still start fresh for each job.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FQ5PzHVUcntEHU97zniM5U

* Print in order on a printer that has no remembered setup

Reverse pages belongs to the printer, so choosing a printer that was
never printed to, or Save as PDF, now turns it off instead of keeping
what the last printer had. The integration test covers switching from
a printer that prints reversed to an unseen printer and to Save as PDF.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FQ5PzHVUcntEHU97zniM5U

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 07:53:23 +01:00
Terra854andFredApps 02afcaabd2 XFA: keep ordinary form widgets when pages are rebuilt (#9038)
* XFA: keep ordinary form widgets when pages are rebuilt

* XFA: stop widget capture when page indices become unknown

---------

Co-authored-by: FredApps <[email protected]>
2026-12-04 07:52:55 +01:00
Terra854andFredApps e088e52679 fix(forms): retain keyboard focus across successive text fields (#8994)
Co-authored-by: FredApps <[email protected]>
2026-12-04 07:36:33 +01:00
Valentin KleinandFredApps 6f3f26fb1b Prepare large scanned PDFs faster for Windows printing (#9161)
* Prepare large scanned PDFs faster for Windows printing

* Cut 1-bit scans on the calling thread when tiling for Windows printing

Starting tile workers for an image costs more than compressing a 1-bit
page's tiles, so start one worker per 8-bit grey tile of decoded data
(at most four) and cut smaller images on the calling thread as before.

---------

Co-authored-by: FredApps <[email protected]>
2026-12-04 06:41:18 +01:00
29d305d95d fix(print): tell CUPS how the marked sheets run (doc_print marks) (#9135)
* Print: tell CUPS how the marked sheets run

With printer marks, doc_print laid the sheets out from the pages as the
document shows them, while print_pdf_marked prints the pages the marks
widen. A page the marks widen from portrait to landscape was spooled
without orientation-requested 4, so CUPS would shrink its landscape sheet
onto portrait paper.

Session::check_printer_marks, the scratch-copy check that already runs
before Will Print, now returns each page's displayed size on that copy, and
doc_print lays the sheets out from them. The sheet count and the automatic
CUPS orientation follow the printed sheets, and nothing is rendered twice.
spool_job's argument checks still run before Will Print; an orientation in
options still stands, and a mixed job still gets none.

The marks test now also prints the same page at the same layout with and
without trim and registration marks, and checks for ink at a trim mark and
a registration target where the unmarked print has blank paper.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Print: keep printed_sheets in the doc_print impl block

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9

---------

Co-authored-by: KenM76 <KenM76>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: KenM76 <[email protected]>
Co-authored-by: FredApps <[email protected]>
2026-12-04 06:40:58 +01:00
YarilaandFredApps 83a0f9fcc2 Place the Home community card close button at the trailing edge (#9071)
* fix(ui): align the menu, mode and command row

* Revert "fix(ui): align the menu, mode and command row"

This reverts commit b6cd1f88bd.

* fix(ui): align the Home community card close button

---------

Co-authored-by: FredApps <[email protected]>
2026-12-04 06:40:29 +01:00
FredAppsandFredApps 7ea018b4f6 test: compare the canonical Windows batch output path (#9278)
Co-authored-by: FredApps <[email protected]>
2026-12-04 05:48:47 +01:00
aiongg c08c21849d Merge pull request #9176 from davidmann4/packaging/macos-cli-in-app
packaging(macos): ship pdfcraft-cli inside PdfCraft.app
2026-12-03 18:52:30 -05:00
eliets2andeliets2 1f26293482 Save per-file batch log with step status and failure reasons (#6519)
* Save per-file batch log with step status and failure reasons

Users need an honest per-file record after a batch run instead of only opaque JSON, so a failing file and its reason are not lost.

Add a plain-text per-file log to the batch result and an optional CLI log path that writes one section per file with step status, output name and failure reason plus final counts, annotating step errors with the step name.

Test: batch_log_names_failed_file_step_and_reason failed before the change and passes after.

* Address review for pull request 6519

* Batch log: escape backslashes, wire the CLI log option

* Compare the escaped output path in the batch log test

* Address review for pull request 6519

* Repair review branch integration

* Format the files this pull request changes

* Repair review branch integration

* Repair review branch integration

* Keep dry-run output names clear of files that already exist

* Give the dry-run log test its own output folder

* Address review for pull request 6519

* Format the files this pull request changes

* Repair review branch integration

* Tighten the change after a final review

* Tighten the change after a final review

* Repair review branch integration

* Address review for pull request 6519

* Format the files this pull request changes

* Address review for pull request 6519

* Repair review branch integration

* Address review for pull request 6519

* Format the files this pull request changes

* Repair review branch integration

* Address review for pull request 6519

* Format the files this pull request changes

* Address remaining review requests

* Tighten the change after a final review

---------

Co-authored-by: eliets2 <[email protected]>
2026-12-03 15:39:04 +01:00
FredApps 54d1d5ef47 Merge pull request #9179 from storytold/fix/nightly-sonar-test-passwords
test(ui-egui): build the sign dialog's dummy passwords instead of writing literals, so Sonar S2068 stops blocking nightlies
v0.23.2-nightly.20261203.47064274612.1.g54d1d5ef4743
2026-12-03 06:47:37 +01:00
FredApps 79d5483eef test(ui-egui): build the sign dialog's dummy passwords instead of writing literals, so Sonar S2068 stops blocking nightlies (#9178) 2026-12-03 05:53:05 +01:00
David MannandClaude Opus 5.5 5cc7a1d7e8 packaging(macos): ship pdfcraft-cli inside PdfCraft.app
The ArtCraft Launcher registers `<app>-cli mcp` for agents only when the CLI sits beside the
app's executable; the stable .app held only the GUI. The CLI is now copied into
Contents/MacOS and signed before the bundle is sealed. The separate CLI zip stays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-03 04:59:49 +01:00
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 2e7c77464b Merge pull request #9055 from storytold/fix/font-picker-test-waits-for-fonts
test(ui): wait for the installed fonts before the Format text font field is opened
2026-12-02 22:09:20 +01:00
FredApps 7b6e92f267 Merge branch 'main' into fix/font-picker-test-waits-for-fonts 2026-12-02 21:00:54 +01:00
FredApps 91aed4b9ca Merge pull request #9063 from storytold/ci/windows-lean-tests
ci: trial: Windows tests only what is Windows-specific, through nextest
2026-12-02 20:59:16 +01:00
FredApps b0bb861807 CI: compile each macOS release architecture on a separate runner (#9075)
The v0.23.2 macOS job compiled Apple Silicon and Intel in series on one
macos-15 runner; the Build, sign, notarize step took about 3 hours 2
minutes (run 46835450051). macos-split-build: true compiles each
architecture on its own runner, then package.sh --skip-build lipos,
signs and notarizes the prebuilt pdfcraft and pdfcraft-cli binaries.

Fixes #9074.
2026-12-02 19:35:43 +01:00
FredApps 402705aaed ci: retrigger the gate after the Actions outage dropped the last push (#9053) 2026-12-03 01:31:50 +07:00
FredApps eece0eb397 ci: retrigger the gate after the Actions outage dropped the last push (#9062) 2026-12-03 01:31:45 +07:00
FredApps bac86d10a0 Merge remote-tracking branch 'origin/fix/font-picker-test-waits-for-fonts' into ci/windows-lean-tests 2026-12-02 18:11:55 +01:00
FredApps e334921afa Merge branch 'main' into ci/windows-lean-tests 2026-12-02 18:11:52 +01:00
FredApps 1ed97de1be test(ui): wait for both tabs before quitting with unsaved changes (#9053)
editing::quitting_with_unsaved_changes_still_remembers_every_file failed on the Windows gate (run
46918447116) at views[0]: the two files open off the UI thread and four frames had not opened them.
2026-12-02 18:11:47 +01:00
FredApps 9a79693e73 test(ui): wait for the password prompt instead of four frames (#9053)
open_action::open_parameters_wait_with_their_file_behind_a_password_prompt_and_a_full_queue failed on
the Windows gate (run 46893736399): the protected file is read off the UI thread, and four frames did
not always reach its prompt, so the dialog was not found. It waits for the prompt now.
2026-12-02 16:45:07 +01:00
FredApps 2269408430 Merge branch 'main' into fix/font-picker-test-waits-for-fonts 2026-12-02 14:38:49 +01:00
FredApps 5b822e9e5e Merge pull request #9056 from storytold/ci/windows-warm-cache
ci: Windows gate warms and saves its dependency cache on main
2026-12-02 14:38:23 +01:00