This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# coding: utf-8
|
||||
# typed: strict
|
||||
# frozen_string_literal: true
|
||||
|
||||
class PDF::Reader
|
||||
|
||||
# Security handler for when we don't support the flavour of encryption
|
||||
# used in a PDF.
|
||||
class UnimplementedSecurityHandler
|
||||
def self.supports?(encrypt)
|
||||
true
|
||||
end
|
||||
|
||||
def decrypt(buf, ref)
|
||||
raise PDF::Reader::EncryptedPDFError, "Unsupported encryption style"
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user