diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index c499057..707cc2b 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -81,4 +81,4 @@ the requested size and an x offset. Done: the paragraph now places against the full body goal and the title-note reserve is applied after it; `arxiv_fixture_is_three_letter_pages` asserts that page 1 contains the closing `See` line and keeps a 3 mm gap above the footnote. -- Fonts: pyftsubset bundles with retained glyph ids and filtered kern table bring the arXiv PDF to about 0.99 MB; exact per-document glyph subsetting remains a follow-up; font programs are Flate-compressed in the PDF. +- Fonts: pyftsubset bundles with retained glyph ids and filtered kern table bring the arXiv PDF to about 0.50 MB; exact per-document glyph subsetting remains a follow-up; font programs are Flate-compressed in the PDF and the unused FOGRA39 output intent is skipped. diff --git a/docs/STATUS.md b/docs/STATUS.md index 7a2495a..54825b2 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -139,7 +139,7 @@ See `docs/ROADMAP.md` for concrete implementation plans. - Compiler integration tests: 53; server tests: 4; total 57. - `cargo fmt --check` passes. -- arXiv fixture: 3 Letter pages, ~0.99 MB; four serif faces and one monospace face embedded (bold/italic monospace falls back to the regular face). The bundled SubsetTTF faces are pyftsubset outputs with retained glyph ids and a filtered legacy kern table; a second smaller Latin-1/Greek tier is selected when the document charset fits. +- arXiv fixture: 3 Letter pages, ~0.50 MB; four serif faces and one monospace face embedded (bold/italic monospace falls back to the regular face). The bundled SubsetTTF faces are pyftsubset outputs with retained glyph ids and a filtered legacy kern table; a second smaller Latin-1/Greek tier is selected when the document charset fits. - Title/author/date/Introduction baselines within 0.3 pt of the XeLaTeX reference; page 1 keeps the closing section-2 line above the footnote. - Table 61.1 mm wide (reference 61.2 mm) with `\multicolumn` spans and @@ -148,4 +148,4 @@ See `docs/ROADMAP.md` for concrete implementation plans. - PDF link annotations are added by reopening the finished PDF with lopdf, since printpdf 0.3.4 has no annotation API. -- Fonts: bundled reserved-glyph subsets in `assets/fonts-subset/` are used when the document charset is covered; arXiv PDF is about 0.99 MB with 58 tests. +- Fonts: bundled reserved-glyph subsets in `assets/fonts-subset/` are used when the document charset is covered; arXiv PDF is about 0.50 MB with 58 tests. diff --git a/vendor/printpdf/src/types/pdf_document.rs b/vendor/printpdf/src/types/pdf_document.rs index a5d16c0..5c3a5e5 100644 --- a/vendor/printpdf/src/types/pdf_document.rs +++ b/vendor/printpdf/src/types/pdf_document.rs @@ -393,7 +393,7 @@ impl PdfDocumentReference { ("Pages", Reference(pages_id)), ]); - if let Some(profile) = icc_profile { + if let Some(profile) = icc_profile.filter(|_| false) { let icc_profile: lopdf::Stream = profile.into(); let icc_profile_id = doc.inner_doc.add_object(Stream(icc_profile)); output_intents.set("DestinationOutputProfile", Reference(icc_profile_id));