iText 8.0.4 API
iText.Kernel.Pdf.ReaderProperties Class Reference

Public Member Functions

virtual ReaderProperties  SetPassword (byte[] password)
  Defines the password which will be used if the document is encrypted with standard encryption. More...
 
virtual ReaderProperties  SetPublicKeySecurityParams (IX509Certificate certificate, IPrivateKey certificateKey)
  Defines the certificate which will be used if the document is encrypted with public key encryption (see Pdf 1.7 specification, 7.6.4. Public-Key Security Handlers) More...
 
virtual ReaderProperties  SetPublicKeySecurityParams (IX509Certificate certificate)
  Defines the certificate which will be used if the document is encrypted with public key encryption (see Pdf 1.7 specification, 7.6.4. Public-Key Security Handlers) More...
 
virtual ReaderProperties  SetMemoryLimitsAwareHandler (MemoryLimitsAwareHandler memoryLimitsAwareHandler)
  Sets the memory handler which will be used to handle decompressed PDF streams. More...
 

Member Function Documentation

◆ SetMemoryLimitsAwareHandler()

virtual ReaderProperties iText.Kernel.Pdf.ReaderProperties.SetMemoryLimitsAwareHandler ( MemoryLimitsAwareHandler  memoryLimitsAwareHandler )
inlinevirtual

Sets the memory handler which will be used to handle decompressed PDF streams.

Parameters
memoryLimitsAwareHandler the memory handler which will be used to handle decompressed PDF streams
Returns
this ReaderProperties instance

◆ SetPassword()

virtual ReaderProperties iText.Kernel.Pdf.ReaderProperties.SetPassword ( byte[]  password )
inlinevirtual

Defines the password which will be used if the document is encrypted with standard encryption.

Defines the password which will be used if the document is encrypted with standard encryption. This could be either user or owner password.

Parameters
password the password to use in order to open the document
Returns
this ReaderProperties instance

◆ SetPublicKeySecurityParams() [1/2]

virtual ReaderProperties iText.Kernel.Pdf.ReaderProperties.SetPublicKeySecurityParams ( IX509Certificate  certificate )
inlinevirtual

Defines the certificate which will be used if the document is encrypted with public key encryption (see Pdf 1.7 specification, 7.6.4. Public-Key Security Handlers)

Parameters
certificate the recipient iText.Commons.Bouncycastle.Cert.IX509Certificate , serves as recipient identifier
Returns
this ReaderProperties instance

◆ SetPublicKeySecurityParams() [2/2]

virtual ReaderProperties iText.Kernel.Pdf.ReaderProperties.SetPublicKeySecurityParams ( IX509Certificate  certificate,
IPrivateKey  certificateKey 
)
inlinevirtual

Defines the certificate which will be used if the document is encrypted with public key encryption (see Pdf 1.7 specification, 7.6.4. Public-Key Security Handlers)

Parameters
certificate the recipient iText.Commons.Bouncycastle.Cert.IX509Certificate , serves as recipient identifier
certificateKey the recipient private iText.Commons.Bouncycastle.Crypto.IPrivateKey to the certificate
Returns
this ReaderProperties instance