Skip to content

Commit

Permalink
More PDF oddities, see #89
Browse files Browse the repository at this point in the history
  • Loading branch information
Leseratte10 committed Aug 7, 2024
1 parent f2e9e69 commit 963d42f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calibre-plugin/libpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 963d42f

Please sign in to comment.