Class POIMetafileRenderer

java.lang.Object
org.apache.tika.renderer.microsoft.POIMetafileRenderer
All Implemented Interfaces:
Serializable, SelfConfiguring, Renderer

public class POIMetafileRenderer extends Object implements Renderer
Renders EMF and WMF images to a raster image through POI's HEMF and HWMF, the way PDFBoxRenderer renders PDF pages: at the RenderSettings the parse scopes into the context (dpi, box, colour, format), else this renderer's own, on a white canvas with the picture's aspect ratio; a canvas over maxImagePixels is refused. Metafiles have no pages, so the render requests are ignored and a single result is returned.

The WMF thumbnails that Word stores in the SummaryInformation of a .doc consist of a window extent and a single dibStretchBlt record, for which POI cannot compute bounds; those are rendered from the record's bitmap directly.

See Also: