Class DocumentProperties

  • Direct Known Subclasses:
    StampingProperties

    public class DocumentProperties
    extends java.lang.Object
    Class with additional properties for PdfDocument processing. Needs to be passed at document initialization.
    • Field Detail

      • 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

      • 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