More PDF oddities, see #89

This commit is contained in:
Florian Bach 2024-08-07 09:43:06 +02:00
parent f2e9e69df3
commit 963d42f785

View file

@ -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: