From 4942751a1b5fbc1edb64f174a5f46f300bfd6ed5 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Fri, 31 Jul 2026 00:45:59 -0700 Subject: [PATCH] Add v17.9.0 release notes for #1723, #1713, and CI release-draft fix --- docs/releasenotes/version17.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/releasenotes/version17.md b/docs/releasenotes/version17.md index 3c188824..493e6b2b 100644 --- a/docs/releasenotes/version17.md +++ b/docs/releasenotes/version17.md @@ -23,6 +23,21 @@ was also corrected to `google-noto-fonts-all`. - Font providers may now implement the optional `GlyphSearchingFontProvider` protocol to participate in coverage-based font search. +- Fixed `--jpeg-quality`/`--jpg-quality` having no effect on the CLI: the + value was silently dropped before reaching the optimizer, which then + always used its own built-in default JPEG quality regardless of what was + requested ({issue}`1723`). The same bug affected the Python API's + `jpg_quality` parameter. `ocrmypdf.ocr()` now accepts `jpeg_quality` + (matching the CLI flag name) as the canonical parameter; `jpg_quality` + still works but is deprecated. +- Hardened PDF parsing against malformed (non-dictionary) `/Resources`, + `/XObject`, and `/FontDescriptor` entries, which previously crashed + `ocrmypdf.ocr()` with `AttributeError`/`TypeError`/`ValueError` on + otherwise-processable files, both during PDF/A font scanning and general + image scanning ({issue}`1713`). Thanks @mvanhorn for the initial fix. +- Release process improvements: fixed a CI bug where every push to main + after a release was tagged would incorrectly revert the just-published + GitHub release back to draft status. ## v17.8.1