Skip to content

Commit

Permalink
REL: 3.17.2
Browse files Browse the repository at this point in the history
## 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](3.17.1...3.17.2)
  • Loading branch information
MartinThoma committed Dec 10, 2023
1 parent 0bc45c6 commit 38795f5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
13 changes: 13 additions & 0 deletions 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)
Expand Down
14 changes: 7 additions & 7 deletions pypdf/_reader.py
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pypdf/_version.py
@@ -1 +1 @@
__version__ = "3.17.1"
__version__ = "3.17.2"

0 comments on commit 38795f5

Please sign in to comment.