org.apache.poi.hwpf.converter
Interface PicturesManager


@Beta
public interface PicturesManager

User-implemented pictures manager to store images on-disk

Author:
Sergey Vladimirov (vlsergey {at} gmail {dot} com)

Method Summary
 java.lang.String savePicture(byte[] content, PictureType pictureType, java.lang.String suggestedName)
          Stores image (probably on disk).
 

Method Detail

savePicture

java.lang.String savePicture(byte[] content,
                             PictureType pictureType,
                             java.lang.String suggestedName)
Stores image (probably on disk). Please, note that different output format support different file types, so image conversion may be required. For example, HTML browsers usually supports PictureType.GIF, PictureType.JPEG, PictureType.PNG, PictureType.TIFF, but rarely PictureType.EMF or PictureType.WMF. FO (Apache FOP) supports at least PNG and SVG types.

Parameters:
content - picture content
Returns:
path to file that can be used as reference in HTML (img's src) of XLS FO (fo:external-graphic's src) or null if image were not saved and should not be referenced from result HTML / FO.


Copyright 2011 The Apache Software Foundation or its licensors, as applicable.