Class FingerPrint


  • public class FingerPrint
    extends java.lang.Object
    Data container for debugging information. This class keeps a record of every registered product that was involved in the creation of a certain PDF file.
    • Field Detail

      • productDataSet

        private java.util.Set<ProductData> productDataSet
      • fingerPrintEnabled

        private boolean fingerPrintEnabled
    • Constructor Detail

      • FingerPrint

        public FingerPrint()
        Default constructor. Initializes the productDataSet.
    • Method Detail

      • disableFingerPrint

        public void disableFingerPrint()
        This method is used to disable iText fingerprint. IText fingerPrint can only be disabled if all products are in non AGPL mode.
      • isFingerPrintEnabled

        public boolean isFingerPrintEnabled()
        This method is used to check iText fingerprint state.
        Returns:
        true if fingerprint will be added to the document
      • registerProduct

        public boolean registerProduct​(ProductData productData)
        Registers a product to be added to the fingerprint or other debugging info.
        Parameters:
        productData - ProductData to be added
        Returns:
        true if the fingerprint did not already contain the specified element
      • getProducts

        public java.util.Collection<ProductData> getProducts()
        Returns the registered products.
        Returns:
        registered products.