From 963d42f7856a5bd998582d444f7aca6abd152de3 Mon Sep 17 00:00:00 2001 From: Florian Bach Date: Wed, 7 Aug 2024 09:43:06 +0200 Subject: [PATCH] More PDF oddities, see #89 --- calibre-plugin/libpdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calibre-plugin/libpdf.py b/calibre-plugin/libpdf.py index 2525f65..24bbfcf 100644 --- a/calibre-plugin/libpdf.py +++ b/calibre-plugin/libpdf.py @@ -202,7 +202,7 @@ def patch_drm_into_pdf(filename_in, adept_license_string, filename_out, ebx_book line_split = encrypt.split(' ') next = 0 for element in line_split: - if element == "R/Encrypt" or element == "/Encrypt": + if element == "R/Encrypt" or element == "/Encrypt" or element == "null/Encrypt": next = 2 continue if next == 2: