lib/hexapdf/encryption/standard_security_handler.rb in hexapdf-0.28.0 vs lib/hexapdf/encryption/standard_security_handler.rb in hexapdf-0.29.0
- old
+ new
@@ -95,10 +95,11 @@
#
# The access permissions (see StandardSecurityHandler::Permissions) can be used to restrict what
# a user is allowed to do with a PDF file.
#
# When a user or owner password is specified, a PDF file can only be opened when the correct
- # password is supplied.
+ # password is supplied. To open such an encrypted PDF file, the +decryption_opts+ provided to
+ # HexaPDF::Document.new needs to contain a :password key with the password.
#
# See: PDF1.7 s7.6.3, PDF2.0 s7.6.3
class StandardSecurityHandler < SecurityHandler
# Defines all available permissions.