Package com.itextpdf.kernel.pdf
Class DocumentProperties
- java.lang.Object
-
- com.itextpdf.kernel.pdf.DocumentProperties
-
- Direct Known Subclasses:
StampingProperties
public class DocumentProperties extends java.lang.Object
Class with additional properties forPdfDocument
processing. Needs to be passed at document initialization.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.HashMap<java.lang.Class<?>,java.lang.Object>
dependencies
protected IMetaInfo
metaInfo
-
Constructor Summary
Constructors Constructor Description DocumentProperties()
Default constructor, use provided setters for configuration options.DocumentProperties(DocumentProperties other)
Creates a copy of class instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEventCountingMetaInfoSet()
Checks if the document event counting meta info was already set.DocumentProperties
registerDependency(java.lang.Class<?> clazz, java.lang.Object instance)
Register custom dependency for the document.DocumentProperties
setEventCountingMetaInfo(IMetaInfo metaInfo)
Sets document meta info.
-
-
-
Field Detail
-
metaInfo
protected IMetaInfo metaInfo
-
dependencies
java.util.HashMap<java.lang.Class<?>,java.lang.Object> dependencies
-
-
Constructor Detail
-
DocumentProperties
public DocumentProperties()
Default constructor, use provided setters for configuration options.
-
DocumentProperties
public DocumentProperties(DocumentProperties other)
Creates a copy of class instance.- Parameters:
other
- the base for new class instance
-
-
Method Detail
-
setEventCountingMetaInfo
public DocumentProperties setEventCountingMetaInfo(IMetaInfo metaInfo)
Sets document meta info.- Parameters:
metaInfo
- meta info to set- Returns:
- this
DocumentProperties
instance
-
isEventCountingMetaInfoSet
public boolean isEventCountingMetaInfoSet()
Checks if the document event counting meta info was already set.- Returns:
- true if the document event counting meta info is set, false otherwise.
-
registerDependency
public DocumentProperties registerDependency(java.lang.Class<?> clazz, java.lang.Object instance)
Register custom dependency for the document.- Parameters:
clazz
- Type of the dependency.instance
- The instance of the dependency.- Returns:
- this
DocumentProperties
instance
-
-