feat(domain): R4.5b/c serialiser, export driver, self-check, from_envelope; O2 parity suite

objects.rs (own minimal writer: numbered objects, streams, classic xref, pdf-lib's string
forms; pdf-writer not used: every number spelt through numberToString, no f32), serialize.rs
(catalog with names tree and AF, pages, 3 Type1 WinAnsi fonts, image XObjects with the
DeviceGray SMask, Link annotations with hex ASCII URIs, Info with Producer/Creator
Faunosteo, the Flate attachment with Params and Filespec), export.rs (checks → envelope
as JSON.stringify(_, null, 2) → layout → file → self-check through the R4 reader;
export_from_envelope). cargo pdf_serialize against the 14 R3 PDFs: content streams equal
after resource-name resolution, image planes and SMasks equal, links equal, Info equal
but Producer/Creator, attachment bytes equal (store path: values equal, D-R11 order);
qpdf --check clean, pdfdetach lists the attachment, poppler 150 dpi 0 pixel differs on
14 runs; R4 PDF → Rust import = R3 PDF import, re-export from the envelope byte-identical;
R4 output digests frozen in goldens/r4/pdf.*.sha256.
This commit is contained in:
bchanot committed 2026-10-18 23:10:18 +02:00
1 parent d7984449ed
commit 4d45de5745
21 files changed
+1381 -2

No files matched your search

@@ -0,0 +1 @@
ecc0d4aea358620e160cbb22d6bf4e8a426dab3efac9f3806dd657b3dea516e7
@@ -0,0 +1 @@
4f70895ae318f8f595c9978dd654cefda8f9efe10b35ea8e50d37617a9ea4332
@@ -0,0 +1 @@
b8c5492b6a09bf7caeef7a299d410e1b193272ece57268d672e55da21f204d73
@@ -0,0 +1 @@
7afcca9d929fc3b0d04e7e3cfda0aaa3999f4dd784910b91d2aafdcae925a778
@@ -0,0 +1 @@
0540d6a281bbec25478cc9b956b8ba9f5ae9f8f6c2561a869b0fed0b0ddb0e38
@@ -0,0 +1 @@
8b42a89904f2b5544be5ecb834d8c15203560264388f95fab159bb5ec9039e5b
@@ -0,0 +1 @@
c1710db98a3e3265dc5097bbea02996f489c81ed1f29e2bd6608ca4010d328b7
@@ -0,0 +1 @@
6a77c18ca8d00ea1d063cd5f7e3367d76654b765ad1cbfedddba3d038c5aba08
@@ -0,0 +1 @@
ace38ed895694f4f86011f28892846ac41829d15bce485f82cbf29b4cd586715
@@ -0,0 +1 @@
57bcac416cce264a09e221d8ece8dd8ebfcb7244b3feae6659a4c95a99549383
@@ -0,0 +1 @@
14dc9f70873b23ec53ad0081a33942c029298879d14b761c4b53190298e1cb81
@@ -0,0 +1 @@
5b96a835158b9783c84d2c71457da32a79102202c1956ce958610d6b54304b58
@@ -0,0 +1 @@
82c3e716e275bc3930249f8f7363ea135efe8f35f8deeffd090d9de1ca6dbb6b
@@ -0,0 +1 @@
300d514382483b9cf485a02643d6fd95bfc4dc5e515386ccd8e07a4edbb149a9