Example usage for org.apache.poi.hslf.extractor PowerPointExtractor getMetadataTextExtractor

List of usage examples for org.apache.poi.hslf.extractor PowerPointExtractor getMetadataTextExtractor

Introduction

In this page you can find the example usage for org.apache.poi.hslf.extractor PowerPointExtractor getMetadataTextExtractor.

Prototype

@Override
public POITextExtractor getMetadataTextExtractor() 

Source Link

Document

Returns an HPSF powered text extractor for the document properties metadata, such as title and author.

Usage

From source file:uk.ac.liverpool.MSOffice.MSPowerpoint.java

License:Open Source License

private String extractFeature(SlideShow s, HSLFSlideShow hppt, ExtractionFeature f) throws IOException {
    PowerPointExtractor p;
    switch (f) {/*  w ww  .j a v  a2s. co  m*/

    case SIMPLETEXT:
        p = new PowerPointExtractor(hppt);
        return p.getText(true, false);
    case SIMPLENOTES:
        p = new PowerPointExtractor(hppt);
        return p.getText(false, true);
    // break;
    case SVGGRAPHICS:
        throw new IOException("Unimplemented");
    case XMLTEXT:
        return extraxtXMLText(s);
    // break;
    case METADATA:
        p = new PowerPointExtractor(hppt);
        return p.getMetadataTextExtractor().getText();
    default:
        break;
    }
    return null;
}