From 38795f5cb23f1950c65a2928763747230db84374 Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Sun, 10 Dec 2023 12:51:10 +0100 Subject: [PATCH] REL: 3.17.2 ## What's new ### Bug Fixes (BUG) - Cope with deflated images with CMYK Black Only (#2322) by @pubpub-zz - Handle indirect objects as parameters for CCITTFaxDecode (#2307) by @stefan6419846 - check words length in _cmap type1_alternative function (#2310) by @Takher ### Robustness (ROB) - Relax flate decoding for too many lookup values (#2331) by @stefan6419846 - Let _build_destination skip in case of missing /D key (#2018) by @nickryand ### Documentation (DOC) - Note in reading form data (#2338) by @MartinThoma - Pull Request prefixes and size by @MartinThoma - Add https://github.com/zuypt for #2325 as a contributor by @MartinThoma - Fix docstring for RunLengthDecode.decode (#2302) by @stefan6419846 ### Maintenance (MAINT) - Enable `disallow_any_generics` and add missing generics (#2278) by @nilehmann ### Testing (TST) - Centralize file downloads (#2324) by @MartinThoma ### Code Style (STY) - Fix typo "steam" \xe2\x86\x92 "stream" (#2327) by @stefan6419846 - Run black by @MartinThoma - Make Traceback in bug report template uppercase (#2304) by @stefan6419846 [Full Changelog](https://github.com/py-pdf/pypdf/compare/3.17.1...3.17.2) --- CHANGELOG.md | 13 +++++++++++++ pypdf/_reader.py | 14 +++++++------- pypdf/_version.py | 2 +- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6102d43b0..0f52bf270 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # CHANGELOG +## Version 3.17.2, 2023-12-10 + +### Bug Fixes (BUG) +- Cope with deflated images with CMYK Black Only (#2322) +- Handle indirect objects as parameters for CCITTFaxDecode (#2307) +- check words length in _cmap type1_alternative function (#2310) + +### Robustness (ROB) +- Relax flate decoding for too many lookup values (#2331) +- Let _build_destination skip in case of missing /D key (#2018) + +[Full Changelog](https://github.com/py-pdf/pypdf/compare/3.17.1...3.17.2) + ## Version 3.17.1, 2023-11-14 ### Bug Fixes (BUG) diff --git a/pypdf/_reader.py b/pypdf/_reader.py index d053b0a4e..365cb0bae 100644 --- a/pypdf/_reader.py +++ b/pypdf/_reader.py @@ -805,10 +805,10 @@ def _get_named_destinations( break i += 1 if isinstance(value, DictionaryObject): - if "/D" in value: - value = value["/D"] - else: - continue + if "/D" in value: + value = value["/D"] + else: + continue dest = self._build_destination(key, value) # type: ignore if dest is not None: retval[key] = dest @@ -817,10 +817,10 @@ def _get_named_destinations( val = v__.get_object() if isinstance(val, DictionaryObject): if "/D" in val: - val = val["/D"].get_object() + val = val["/D"].get_object() else: - continue - dest = self._build_destination(k__, val) # type: ignore + continue + dest = self._build_destination(k__, val) if dest is not None: retval[k__] = dest return retval diff --git a/pypdf/_version.py b/pypdf/_version.py index 7e84c71b2..4874dc2b7 100644 --- a/pypdf/_version.py +++ b/pypdf/_version.py @@ -1 +1 @@ -__version__ = "3.17.1" +__version__ = "3.17.2"