Interface ImageProcessor


  • @Deprecated
    public interface ImageProcessor
    Deprecated.
    since 5.5.2
    Implement this interface to process images and to indicate if the image needs to be added or skipped.
    Since:
    5.0.6 (renamed)
    • Method Detail

      • process

        boolean process​(Image img,
                        java.util.Map<java.lang.String,​java.lang.String> attrs,
                        ChainedProperties chain,
                        DocListener doc)
        Deprecated.
        Allows you to (pre)process the image before (or instead of) adding it to the DocListener with HTMLWorker.
        Parameters:
        img - the Image object
        attrs - attributes of the image
        chain - hierarchy of attributes
        doc - the DocListener to which the Image needs to be added
        Returns:
        false if you still want HTMLWorker to add the Image