Commit Graph
6348 Commits
Author SHA1 Message Date
mtlcl410andClaude Opus 5.5 52131ba093 M11: 6.2.10 reads blend modes only from graphics states, wants a device-independent /CS and a profiled intent, rereads shallower
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 11:16:00 +08:00
FredApps 13cb547434 Merge remote-tracking branch 'origin/main' into fix5754
# Conflicts:
#	crates/ui-egui/tests/it/fill_sign.rs
2026-11-05 04:06:56 +01:00
FredApps 713c61548f Merge pull request #5435 from agent-reed/feat/fill-sign-rail-default
M5.7: the quick bar's Fill & Sign button shows the tool it picks
2026-11-05 04:06:42 +01:00
mtlcl410andClaude Opus 5.5 3c749e13df M11: tests: split the predefined XMP value type test by kind of value (6.6.2.3.1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 11:05:35 +08:00
mtlcl410andClaude Opus 5.5 25e7024aae M11: parity: PDF/A verify checks predefined XMP value types (6.6.2.3.1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 11:04:15 +08:00
mtlcl410andClaude Opus 5.5 903405072e M11: PDF/A verify checks the value types of the predefined XMP schemas (6.6.2.3.1)
Properties of the Dublin Core, XMP Basic, Rights Management, Media
Management, Basic Job Ticket, Paged-Text, Dynamic Media, Adobe PDF,
Photoshop and Camera Raw namespaces must have the types ISO 16684-1
clause 8 and XMP Specification Part 2 give them: simple values by their
lexical form, arrays by kind and items, structures by their fields, in
every RDF/XML form a value can take. xmp::parse is shared with the
identification read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 11:03:28 +08:00
mtlcl410andClaude Opus 5.5 0b2c452bb1 M11: transparency: cite the ISO 32000-1 clauses that define transparent painting
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 10:56:01 +08:00
mtlcl410andClaude Opus 5.5 be2c726935 M11: parity: Verify PDF/A checks transparency (6.2.10)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 10:55:36 +08:00
mtlcl410andClaude Opus 5.5 c35d8441d9 M11: PDF/A verify reports blend modes ISO 32000-1 doesn't define (6.2.10)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 10:54:12 +08:00
mtlcl410andClaude Opus 5.5 19da2752cf M11: PDF/A verify reports a page with transparency and no blending colour space (6.2.10)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 10:52:22 +08:00
Eric Kaden 5dd1b287bd Merge remote-tracking branch 'upstream/main' into fix/choice-list-popup
# Conflicts:
#	crates/ui-egui/src/canvas/page_pointer/tests.rs
#	crates/ui-egui/src/tools/forms_ui.rs
2026-11-04 21:44:20 -05:00
Eric Kaden db14f75ed5 Merge remote-tracking branch 'upstream/main' into fix/cups-landscape-sheets
# Conflicts:
#	crates/print/README.md
2026-11-04 21:31:29 -05:00
Grzegorz MartensandClaude Opus 5.5 02360536a7 M7: tests and docs say what the font reads do
The Claims review of fd4b698c7:

- The predictor test's rows are tagged Up, not None: read without the
  predictor, None rows leave only zero bytes, which a CMap's parser
  skips, so its ToUnicode part passed without the fix.
- embedded_sfnt_within's comment and its test's doc gave guessed
  meanings as the reason no copy is adapted; it is the metrics read past
  the allowance, the widths' read of the program again included.
- The full-map test is named for the filters it covers, and the docs of
  Reads::decode, MAX_CMAP_BYTES and the own-limit test carry the
  conditions they hold under.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmsdeUCdTaD72jkDw2pJKY
2026-11-05 03:22:45 +01:00
Eric Kaden 9008368062 Merge remote-tracking branch 'upstream/main' into feat/sign-tab-empty-signature-fields
# Conflicts:
#	crates/ui-egui/src/canvas.rs
#	crates/ui-egui/src/canvas/area.rs
#	crates/ui-egui/src/canvas/page_pointer/tests.rs
#	crates/ui-egui/src/tools/forms_ui.rs
2026-11-04 21:20:42 -05:00
mtlcl410andClaude Opus 5.5 75b82de0d5 M11: PDF/A verify reads an action's type through a reference (6.5.1)
An action whose /S refers to /Named or /NOP is checked like one that
names it directly, so verification reports it and conversion removes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 10:14:44 +08:00
mtlcl410andClaude Opus 5.5 fad9ee3f9f M11: Save as PDF/A makes a new file identifier when the old first string is too long to keep (6.1.3)
The first /ID string is kept only when a conforming file can hold it:
non-empty and within 32767 bytes (ISO 32000-1 Annex C). The report says
"Completed the file identifier" when it was kept and "Added a file
identifier" when both strings are new.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 10:10:41 +08:00
mtlcl410andClaude Opus 5.5 d9abc9b82c M11: PDF/A verify reads a Named action's name through a reference (6.5.1)
A Named action whose /N refers to /NextPage (or another page move) is
allowed and survives Save as PDF/A; the test checks that conversion
keeps such an action.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 10:00:38 +08:00
mtlcl410andClaude Opus 5.5 86aad0304c M11: Save as PDF/A keeps the permanent part of a malformed file identifier (6.1.3)
The first /ID string is the file's permanent identifier (ISO 32000-1
14.4); when it is a non-empty string, conversion keeps it and makes only
the second afresh. The test also checks that a good /ID is left as it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 09:53:10 +08:00
mtlcl410andClaude Opus 5.5 33cd765828 M11: parity: PDF/A verify covers SetState, NOP and Named actions (6.5.1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 09:37:22 +08:00
mtlcl410andClaude Opus 5.5 ea51204d5f M11: PDF/A verify reports SetState, NOP and Named actions beyond the four page moves (6.5.1)
The PDF 1.2 SetState and NOP actions, which ISO 32000-1 no longer
defines, are forbidden, and a Named action may only name NextPage,
PrevPage, FirstPage or LastPage (ISO 32000-1 Table 212). Save as PDF/A
removes the others as it does other forbidden actions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 09:36:59 +08:00
mtlcl410andClaude Opus 5.5 fd2c875702 M11: parity: PDF/A verify and Save as PDF/A cover the file identifier (6.1.3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 09:35:15 +08:00
mtlcl410andClaude Opus 5.5 1336bc8896 M11: PDF/A verify checks the file identifier and Save as PDF/A adds one (6.1.3)
The trailer the last startxref points to (an update's, or a linearized
file's first-page trailer) must have an /ID of two non-empty strings
(ISO 32000-1 14.4). Save as PDF/A gives a document without a good one a
new identifier, made by the writer's generator, now public in cos as
new_file_id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 09:26:20 +08:00
mtlcl410andClaude Opus 5.5 3d2134fa00 M11: parity: 6.2.5 notes cite the primary colour components
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 09:22:40 +08:00
mtlcl410andClaude Opus 5.5 b4e99b6229 M11: PDF/A verify takes the primary colour components of all three device spaces (6.2.5)
Gray, Red, Green and Blue are primary colour components as well as Cyan,
Magenta, Yellow and Black (ISO 32000-1 10.5.5.6, ISO 32000-2 10.6.5.6):
their halftones need no transfer function and may not have one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 09:21:14 +08:00
mtlcl410andClaude Opus 5.5 4c5fd46af7 M11: parity: cite the 6.2.5 scan test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 09:07:53 +08:00
mtlcl410andClaude Opus 5.5 1928500350 M11: PDF/A verify's graphics state scan reads each object once, whatever the generation (6.2.5)
Document::get fetches by object number, so references that differ only
in generation reach the same object; the reached and read sets now go
by number, and each object is walked once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 09:07:37 +08:00
mtlcl410andClaude Opus 5.5 c6b5e61270 M11: PDF/A verify reads graphics states from what the trailer reaches, and needs an integer HalftoneType (6.2.5)
Objects are followed from the trailer through a queue of references,
never into /PieceInfo, so an object only private data refers to is not
read as a graphics state holder. /HalftoneType must be an integer
(ISO 32000-1 Table 128); a real of the same value is reported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 08:46:59 +08:00
mtlcl410andClaude Opus 5.5 bf20038b0b M11: PDF/A verify reports nonzero reals nearer zero than ±1.175 × 10⁻³⁸ (6.1.13)
PDF Association TechNote 0010 A018: PDF/A-2 does not allow the nonzero
reals that ISO 32000-1 Table C.1 lets a reader round to zero.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 08:46:57 +08:00
mtlcl410andClaude Opus 5.5 7e16d79284 M11: parity: PDF/A graphics state notes cover halftone transfer functions (6.2.5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 08:35:47 +08:00
mtlcl410andClaude Opus 5.5 ace9358b58 M11: tests: private /PieceInfo data holding resources isn't read for 6.2.5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 08:34:14 +08:00
mtlcl410andClaude Opus 5.5 cdc27e538c M11: PDF/A verify reads graphics states from resources only and checks halftone transfer functions (6.2.5)
Graphics states come from /Resources and /DR entries and from shading
patterns, never from private /PieceInfo data, and maps shared by
reference are read once. A halftone without a /HalftoneType, a
rendering intent that isn't a name, and a halftone /TransferFunction
where it isn't allowed or is missing (non-primary colorants of a type 5
halftone need one; ISO 32000-1 Table 130) are reported. A null entry
counts as absent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 08:33:05 +08:00
vangel76andClaude Sonnet 5.5 0346b49502 Merge upstream/main into feat/optimize-target-bytes
Keeps main's reworded mono-image text and the target_bytes paragraph in the doc_optimize description.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 01:27:49 +01:00
vangel76andClaude Sonnet 5.5 7c443590e1 Merge upstream/main into feat/crop-toolbar-5330
Crop pages moves into the hotbar's core tool buttons, where main now builds the quick bar.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 01:27:05 +01:00
vangel76andClaude Sonnet 5.5 a371b24f2a test(sign): tighten the NeedAppearances tests (#5939)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 01:25:41 +01:00
mtlcl410andClaude Opus 5.5 5f06cfaa55 M11: parity: Save as PDF/A cites the engine header test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 08:16:39 +08:00
vangel76andClaude Sonnet 5.5 a62633e902 fix(sign): the first signature drops /NeedAppearances so Acrobat recognises it (#5939)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 01:16:17 +01:00
mtlcl410andClaude Opus 5.5 122a155126 M11: tests: Save as PDF/A saves a compliant header through the ordinary save (6.1.2)
An engine test converts files without a binary comment and with a 2.0
header, saves them through Session::save_bytes and verifies the
reopened bytes; the preflight test adds a good version with a short
comment, and a good header that conversion leaves alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 08:16:02 +08:00
mtlcl410andClaude Opus 5.5 869df9f2a3 M11: parity: PDF/A graphics state notes name what 6.2.5 covers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 08:12:11 +08:00
mtlcl410andClaude Opus 5.5 5874e52055 M11: PDF/A verify reports a halftone phase (HTP) in a graphics state (6.2.5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 08:11:58 +08:00
mtlcl410andClaude Opus 5.5 77ffebf7bd M11: parity: PDF/A verify checks graphics states (6.2.5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 08:07:04 +08:00
mtlcl410andClaude Opus 5.5 9d0821ba8b M11: PDF/A verify reports transfer functions, halftones and rendering intents a graphics state may not use (6.2.5)
A graphics state may not have /TR, may have /TR2 only as /Default, may
use halftones of type 1 or 5 only and without /HalftoneName (also the
colorant halftones of a type 5 one), and a rendering intent from ISO
32000-1 Table 70. Graphics states are read from every /ExtGState
resource dictionary and from shading patterns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 08:06:35 +08:00
mtlcl410andClaude Opus 5.5 307172fbd1 M11: parity: PDF/A verify and Save as PDF/A cover the file header (6.1.2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 07:55:43 +08:00
mtlcl410andClaude Opus 5.5 d2776fa350 M11: PDF/A verify checks the file header and Save as PDF/A rewrites it (6.1.2)
The file must start with %PDF-1.0 to %PDF-1.7 and an end-of-line marker,
followed by a comment of % and four bytes above 127. A document whose
next save is a full rewrite is judged by the header that save writes.
Save as PDF/A makes the next save full, at version 1.7 when the kept
version isn't 1.0 to 1.7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 07:54:30 +08:00
mtlcl410andClaude Opus 5.5 2c5e69a8e2 M11: Verify PDF/A compares Separation spaces by decoded data and checks Colorants entries
A /Colorants entry counts only as a Separation space of its own colorant
(ISO 32000-1 8.6.6.5, Table 71). Tint-transform and other streams compare
by decoded data, so the same function stored under another filter is the
same. Equal reference pairs are remembered and comparisons are bounded,
so a structure shared by many definitions is compared once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 07:33:21 +08:00
mtlcl410andClaude Opus 5.5 54ff776de9 fix(xfa): fit passes stop once the draw budget is spent, and the last pass is checked
A draw's fit passes ran on after one had spent the budget, each a full
measure, before the draw was refused; each pass now checks the budget before
it starts and after it ends. The final layout pass, which expands the
embedded values once more, is checked too, so the draw that crosses the
budget there is refused even when it is the form's last. (CodeRabbit review
on #5852.)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 07:25:53 +08:00
mtlcl410andClaude Opus 5.5 6ebfada74d M11: parity: Verify PDF/A checks the implementation limits (6.1.13)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 07:16:15 +08:00
mtlcl410andClaude Opus 5.5 8d948e1dd0 M11: 6.1.13 also reports reals past ±3.403e38 and CMaps mapping to CIDs above 65535
Finishes the clause. Table C.1 of ISO 32000-1 Annex C bounds real values
at about ±3.403 × 10^38 and character identifiers at 65535. A real past
that range (an integer token too long even for a real reads as one) is
reported, and so is an embedded CMap of a Type 0 font, or one it uses
through /UseCMap, whose begincidrange entry reaches past CID 65535 or
whose begincidchar entry names one (ISO 32000-1 9.7.5.4). A CMap named
rather than embedded is a predefined one, within the limit. The CMaps are
decoded within one 16 MiB allowance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 07:16:15 +08:00
mtlcl410andClaude Opus 5.5 841b4ab698 M11: parity: Verify PDF/A checks Separation and DeviceN spaces (6.2.4.4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 07:15:25 +08:00
vangel76andClaude Sonnet 5.5 c4dd5fe245 Format
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 00:07:26 +01:00
mtlcl410andClaude Opus 5.5 32ab43eab0 fix(xfa): the embedded-copy test allows the draw budget to stop it first
With embedded values counted, the 1 MiB test budget can stop this draw
before its last pass; the bound on what is copied out still holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pq7HyDBXygTf7jcqdsjcfn
2026-11-05 07:06:48 +08:00