Files
news.gitea.happylizard.me/bin/gems/pdf-reader-2.14.1/lib/pdf/reader/unimplemented_security_handler.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

19 lines
382 B
Ruby

# 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