Skip the unused print output intent to shrink PDFs
This commit is contained in:
1 parent
8fea8880b5
commit
69edbf56b6
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -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.
|
||||
+2
-2
@@ -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.
|
||||
+1
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user