iText 9.1.0 API
iText.Kernel.Pdf.StampingProperties Class Reference
Inheritance diagram for iText.Kernel.Pdf.StampingProperties:
iText.Kernel.Pdf.DocumentProperties

Public Member Functions

  StampingProperties (iText.Kernel.Pdf.StampingProperties other)
 
virtual iText.Kernel.Pdf.StampingProperties  UseAppendMode ()
  Defines if the document will be edited in append mode. More...
 
virtual iText.Kernel.Pdf.StampingProperties  PreserveEncryption ()
  Defines if the encryption of the original document (if it was encrypted) will be preserved. More...
 
virtual iText.Kernel.Pdf.StampingProperties  DisableMac ()
  Disables MAC token in the output PDF-2.0 document. More...
 
- Public Member Functions inherited from iText.Kernel.Pdf.DocumentProperties
  DocumentProperties ()
  Default constructor, use provided setters for configuration options. More...
 
  DocumentProperties (iText.Kernel.Pdf.DocumentProperties other)
  Creates a copy of class instance. More...
 
virtual iText.Kernel.Pdf.DocumentProperties  SetEventCountingMetaInfo (IMetaInfo metaInfo)
  Sets document meta info. More...
 
virtual bool  IsEventCountingMetaInfoSet ()
  Checks if the document event counting meta info was already set. More...
 
virtual iText.Kernel.Pdf.DocumentProperties  RegisterDependency (Type clazz, Object instance)
  Register custom dependency for the document. More...
 

Package Attributes

bool  appendMode = false
 
bool  preserveEncryption = false
 
bool  disableMac = false
 
- Package Attributes inherited from iText.Kernel.Pdf.DocumentProperties
IMetaInfo  metaInfo = null
 

Member Function Documentation

◆ DisableMac()

virtual iText.Kernel.Pdf.StampingProperties iText.Kernel.Pdf.StampingProperties.DisableMac ( )
inlinevirtual

Disables MAC token in the output PDF-2.0 document.

Disables MAC token in the output PDF-2.0 document. By default, MAC token will be embedded. This property does not remove MAC token from existing document in append mode because it removes MAC protection from all previous revisions also.

Returns
this StampingProperties instance

◆ PreserveEncryption()

virtual iText.Kernel.Pdf.StampingProperties iText.Kernel.Pdf.StampingProperties.PreserveEncryption ( )
inlinevirtual

Defines if the encryption of the original document (if it was encrypted) will be preserved.

Defines if the encryption of the original document (if it was encrypted) will be preserved. By default, the resultant document doesn't preserve the original encryption.

Returns
this StampingProperties instance

◆ UseAppendMode()

virtual iText.Kernel.Pdf.StampingProperties iText.Kernel.Pdf.StampingProperties.UseAppendMode ( )
inlinevirtual

Defines if the document will be edited in append mode.

Returns
this StampingProperties instance