From d6a6346936d824bcffd53afec8f1c03027793f24 Mon Sep 17 00:00:00 2001 From: Ryo Kamei <44630192+ssjkamei@users.noreply.github.com> Date: Sun, 6 Oct 2024 13:15:14 +0900 Subject: [PATCH] Update pypdf/_cmap.py Co-authored-by: Stefan <96178532+stefan6419846@users.noreply.github.com> --- pypdf/_cmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypdf/_cmap.py b/pypdf/_cmap.py index 7ddb6d2f3..52a7b47b8 100644 --- a/pypdf/_cmap.py +++ b/pypdf/_cmap.py @@ -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: