Examples of XSLFSlideShow


Examples of org.apache.poi.xslf.XSLFSlideShow

            , text
      );
  }

    public void testTable() throws Exception {
        XSLFSlideShow xml =
           new XSLFSlideShow(OPCPackage.open(slTests.openResourceAsStream("present1.pptx")));
        XSLFPowerPointExtractor extractor =
            new XSLFPowerPointExtractor(xml);

        String text = extractor.getText();
        assertTrue(text.length() > 0);
View Full Code Here

Examples of org.apache.poi.xslf.XSLFSlideShow

    }

    // TODO get rid of this method
    @Deprecated
    public XSLFSlideShow _getXSLFSlideShow() throws OpenXML4JException, IOException, XmlException{
        return new XSLFSlideShow(getPackage());
    }
View Full Code Here

Examples of org.apache.poi.xslf.XSLFSlideShow

     * @see org.apache.poi.xslf.extractor.XSLFPowerPointExtractor#getText()
     */
    @Override
    protected void buildXHTML(XHTMLContentHandler xhtml) throws SAXException,
            XmlException, IOException {
        XSLFSlideShow slideShow = (XSLFSlideShow) extractor.getDocument();
        XMLSlideShow xmlSlideShow = new XMLSlideShow(slideShow);

        XSLFSlide[] slides = xmlSlideShow.getSlides();
        for (XSLFSlide slide : slides) {
            CTSlide rawSlide = slide._getCTSlide();
View Full Code Here

Examples of org.apache.poi.xslf.XSLFSlideShow

     *  and slide drawings which have the images
     */
    @Override
    protected List<PackagePart> getMainDocumentParts() throws TikaException {
       List<PackagePart> parts = new ArrayList<PackagePart>();
       XSLFSlideShow document = (XSLFSlideShow) extractor.getDocument();
      
       for (CTSlideIdListEntry ctSlide : document.getSlideReferences().getSldIdList()) {
          // Add the slide
          PackagePart slidePart;
          try {
             slidePart = document.getSlidePart(ctSlide);
          } catch(IOException e) {
             throw new TikaException("Broken OOXML file", e);
          } catch(XmlException xe) {
             throw new TikaException("Broken OOXML file", xe);
          }
View Full Code Here

Examples of org.apache.poi.xslf.XSLFSlideShow

  public void testPowerPoint() throws Exception {
    File f = new File(dirname, "PPTWithAttachments.pptx");
    assertTrue(f.exists());
   
    POIXMLDocument doc = new XSLFSlideShow(Package.open(f.toString()));
    test(doc, 4);
  }
View Full Code Here

Examples of org.apache.poi.xslf.XSLFSlideShow

  }
  public XSLFPowerPointExtractor(XSLFSlideShow slideshow) throws XmlException, IOException {
    this(new XMLSlideShow(slideshow));
  }
  public XSLFPowerPointExtractor(Package container) throws XmlException, OpenXML4JException, IOException {
    this(new XSLFSlideShow(container));
  }
View Full Code Here

Examples of org.apache.poi.xslf.XSLFSlideShow

      System.err.println("  HXFPowerPointExtractor <filename.pptx>");
      System.exit(1);
    }
    POIXMLTextExtractor extractor =
      new XSLFPowerPointExtractor(
          new XSLFSlideShow(args[0]));
    System.out.println(extractor.getText());
  }
View Full Code Here

Examples of org.apache.poi.xslf.XSLFSlideShow

        System.getProperty("HSLF.testdata.path") +
        File.separator + "sample.pptx"
    );
    assertTrue(fileA.exists());
   
    xmlA = new XSLFSlideShow(fileA.toString());
  }
View Full Code Here

Examples of org.apache.poi.xslf.XSLFSlideShow

        System.getProperty("HSLF.testdata.path") +
        File.separator + "45545_Comment.pptx"
    );
    assertTrue(file.exists());
   
    xmlA = new XSLFSlideShow(file.toString());
    XSLFPowerPointExtractor extractor =
      new XSLFPowerPointExtractor(xmlA);
   
    String text = extractor.getText();
    assertTrue(text.length() > 0);
View Full Code Here

Examples of org.apache.poi.xslf.XSLFSlideShow

  }
  public XSLFPowerPointExtractor(XSLFSlideShow slideshow) throws XmlException, IOException {
    this(new XMLSlideShow(slideshow));
  }
  public XSLFPowerPointExtractor(OPCPackage container) throws XmlException, OpenXML4JException, IOException {
    this(new XSLFSlideShow(container));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.