Example usage for org.apache.poi POIDocument getDocumentSummaryInformation

List of usage examples for org.apache.poi POIDocument getDocumentSummaryInformation

Introduction

In this page you can find the example usage for org.apache.poi POIDocument getDocumentSummaryInformation.

Prototype

public DocumentSummaryInformation getDocumentSummaryInformation() 

Source Link

Document

Fetch the Document Summary Information of the document

Usage

From source file:no.trank.openpipe.parse.ms.POIUtils.java

License:Apache License

/**
 * Exctracts all properties of primitive type, String or Date from the document's summary information
 * and document summary information.//from w ww  . j  a va 2s  .co  m
 * 
 * @param doc the poi document 
 * @return the properties
 */
public static Map<String, String> getProperties(POIDocument doc) {
    Map<String, String> map = new HashMap<String, String>();

    addProperties(map, doc.getSummaryInformation());
    addProperties(map, doc.getDocumentSummaryInformation());

    return map;
}