use of org.apache.poi.POIXMLTextExtractor in project poi by apache.
the class XSLFPowerPointExtractor method main.
public static void main(String[] args) throws Exception {
if (args.length < 1) {
System.err.println("Use:");
System.err.println(" XSLFPowerPointExtractor <filename.pptx>");
System.exit(1);
}
POIXMLTextExtractor extractor = new XSLFPowerPointExtractor(new XSLFSlideShow(args[0]));
System.out.println(extractor.getText());
extractor.close();
}
use of org.apache.poi.POIXMLTextExtractor in project poi by apache.
the class XSSFEventBasedExcelExtractor method main.
public static void main(String[] args) throws Exception {
if (args.length < 1) {
System.err.println("Use:");
System.err.println(" XSSFEventBasedExcelExtractor <filename.xlsx>");
System.exit(1);
}
POIXMLTextExtractor extractor = new XSSFEventBasedExcelExtractor(args[0]);
System.out.println(extractor.getText());
extractor.close();
}
use of org.apache.poi.POIXMLTextExtractor in project poi by apache.
the class XSSFExcelExtractor method main.
public static void main(String[] args) throws Exception {
if (args.length < 1) {
System.err.println("Use:");
System.err.println(" XSSFExcelExtractor <filename.xlsx>");
System.exit(1);
}
OPCPackage pkg = OPCPackage.create(args[0]);
POIXMLTextExtractor extractor = new XSSFExcelExtractor(pkg);
try {
System.out.println(extractor.getText());
} finally {
extractor.close();
}
}
use of org.apache.poi.POIXMLTextExtractor in project poi by apache.
the class XDGFVisioExtractor method main.
public static void main(String[] args) throws IOException {
if (args.length < 1) {
System.err.println("Use:");
System.err.println(" XDGFVisioExtractor <filename.vsdx>");
System.exit(1);
}
POIXMLTextExtractor extractor = new XDGFVisioExtractor(POIXMLDocument.openPackage(args[0]));
System.out.println(extractor.getText());
extractor.close();
}
use of org.apache.poi.POIXMLTextExtractor in project poi by apache.
the class XWPFWordExtractor method main.
public static void main(String[] args) throws Exception {
if (args.length < 1) {
System.err.println("Use:");
System.err.println(" XWPFWordExtractor <filename.docx>");
System.exit(1);
}
POIXMLTextExtractor extractor = new XWPFWordExtractor(POIXMLDocument.openPackage(args[0]));
System.out.println(extractor.getText());
extractor.close();
}
Aggregations