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

The class representing various properties used to read PDF documents. More...

Public Member Functions

  ReaderProperties ()
  Creates an instance of ReaderProperties. More...
 
virtual iText.Kernel.Pdf.ReaderProperties  SetPassword (byte[] password)
  Defines the password which will be used if the document is encrypted with standard encryption. More...
 
virtual iText.Kernel.Pdf.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 iText.Kernel.Pdf.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 iText.Kernel.Pdf.ReaderProperties  SetMemoryLimitsAwareHandler (MemoryLimitsAwareHandler memoryLimitsAwareHandler)
  Sets the memory handler which will be used to handle decompressed PDF streams. More...
 

Package Attributes

byte[]  password
 
IPrivateKey  certificateKey
 
IX509Certificate  certificate
 
MemoryLimitsAwareHandler  memoryLimitsAwareHandler
 

Detailed Description

The class representing various properties used to read PDF documents.

Constructor & Destructor Documentation

◆ ReaderProperties()

iText.Kernel.Pdf.ReaderProperties.ReaderProperties ( )
inline

Creates an instance of ReaderProperties.

Member Function Documentation

◆ SetMemoryLimitsAwareHandler()

virtual iText.Kernel.Pdf.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 iText.Kernel.Pdf.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 iText.Kernel.Pdf.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 iText.Kernel.Pdf.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