Examples of XSLFSlideShow


Examples of org.apache.poi.xslf.XSLFSlideShow

      bis = new BufferedInputStream(leaf.getInputStream());
      POIXMLTextExtractor extractor = (POIXMLTextExtractor) ExtractorFactory.createExtractor(bis);
      POIXMLDocument document = extractor.getDocument();

      if (document instanceof XSLFSlideShow) {
        XSLFSlideShow slideShow = (XSLFSlideShow) document;
        XMLSlideShow xmlSlideShow = new XMLSlideShow(slideShow);
        extractContent(buffy, xmlSlideShow);
      }

      return buffy.toString();
View Full Code Here

Examples of org.apache.poi.xslf.XSLFSlideShow

   
    // Build the notes list - TODO
  }
 
  public XMLSlideShow(OPCPackage pkg) throws XmlException, IOException, OpenXML4JException {
     this(new XSLFSlideShow(pkg));
  }
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(OPCPackage.open(f.toString()));
    test(doc, 4);
  }
View Full Code Here

Examples of org.apache.poi.xslf.XSLFSlideShow

   public Properties getProperties(InputStream is) throws IOException, DocumentReadException
   {
      POIPropertiesReader reader = new POIPropertiesReader();
      try
      {
         reader.readDCProperties(new XSLFSlideShow(OPCPackage.open(is)));
      }
      catch (InvalidFormatException e)
      {
         throw new DocumentReadException("Can't read properties from OOXML document", e);
      }
View Full Code Here

Examples of org.apache.poi.xslf.XSLFSlideShow

      {
         SecurityHelper.doPrivilegedExceptionAction(new PrivilegedExceptionAction<Void>()
         {
            public Void run() throws Exception
            {
               reader.readDCProperties(new XSLFSlideShow(OPCPackage.open(is)));
               return null;
            }
         });
      }
      catch (PrivilegedActionException pae)
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

   private POIDataSamples slTests = POIDataSamples.getSlideShowInstance();

   protected void setUp() throws Exception {
      slTests = POIDataSamples.getSlideShowInstance();
      pkg = OPCPackage.open(slTests.openResourceAsStream("sample.pptx"));
      xmlA = new XSLFSlideShow(pkg);
   }
View Full Code Here

Examples of org.apache.poi.xslf.XSLFSlideShow

   
    extractor.close();
  }
 
   public void testGetComments() throws Exception {
      XSLFSlideShow xml =
         new XSLFSlideShow(OPCPackage.open(slTests.openResourceAsStream("45545_Comment.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

   
    extractor.close();
   }
 
  public void testGetMasterText() throws Exception {
      XSLFSlideShow xml =
         new XSLFSlideShow(OPCPackage.open(slTests.openResourceAsStream("WithMaster.pptx")));
      XSLFPowerPointExtractor extractor =
         new XSLFPowerPointExtractor(xml);
      extractor.setSlidesByDefault(true);
      extractor.setNotesByDefault(false);
      extractor.setMasterByDefault(true);
View Full Code Here

Examples of org.apache.poi.xslf.XSLFSlideShow

   
    extractor.close();
  }

    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
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.