Package com.itextpdf.kernel.pdf
Class StampingProperties
- java.lang.Object
-
- com.itextpdf.kernel.pdf.DocumentProperties
-
- com.itextpdf.kernel.pdf.StampingProperties
-
public class StampingProperties extends DocumentProperties
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanappendModeprotected booleandisableMacprotected booleanpreserveEncryption-
Fields inherited from class com.itextpdf.kernel.pdf.DocumentProperties
dependencies, metaInfo
-
-
Constructor Summary
Constructors Constructor Description StampingProperties()StampingProperties(DocumentProperties documentProperties)StampingProperties(StampingProperties other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StampingPropertiesdisableMac()Disables MAC token in the output PDF-2.0 document.StampingPropertiespreserveEncryption()Defines if the encryption of the original document (if it was encrypted) will be preserved.StampingPropertiesuseAppendMode()Defines if the document will be edited in append mode.-
Methods inherited from class com.itextpdf.kernel.pdf.DocumentProperties
isEventCountingMetaInfoSet, registerDependency, setEventCountingMetaInfo
-
-
-
-
Constructor Detail
-
StampingProperties
public StampingProperties()
-
StampingProperties
public StampingProperties(StampingProperties other)
-
StampingProperties
StampingProperties(DocumentProperties documentProperties)
-
-
Method Detail
-
useAppendMode
public StampingProperties useAppendMode()
Defines if the document will be edited in append mode.- Returns:
- this
StampingPropertiesinstance
-
preserveEncryption
public StampingProperties preserveEncryption()
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
StampingPropertiesinstance
-
disableMac
public StampingProperties disableMac()
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
StampingPropertiesinstance
-
-