com.itextpdf.text.html.simpleparser
Interface ImageProcessor


public interface ImageProcessor

Implement this interface to process images and to indicate if the image needs to be added or skipped.

Since:
5.0.6 (renamed)

Method Summary
 boolean process(Image img, Map<String,String> attrs, ChainedProperties chain, DocListener doc)
          Allows you to (pre)process the image before (or instead of) adding it to the DocListener with HTMLWorker.
 

Method Detail

process

boolean process(Image img,
                Map<String,String> attrs,
                ChainedProperties chain,
                DocListener doc)
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


Copyright © 2013. All Rights Reserved.