Skip to content

Commit

Permalink
Update pypdf/_cmap.py
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan <[email protected]>
  • Loading branch information
ssjkamei and stefan6419846 authored Oct 6, 2024
1 parent e468a4d commit d6a6346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypdf/_cmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def get_encoding(
# Apply rule from PDF ref 1.7 §5.9.1, 1st bullet:
# if cmap not empty encoding should be discarded
# (here transformed into identity for those characters)
# if encoding is an str it is expected to be a identity translation
# If encoding is a string it is expected to be an identity translation.
if isinstance(encoding, dict):
for x in int_entry:
if x <= 255:
Expand Down

0 comments on commit d6a6346

Please sign in to comment.