import java.io.IOException;
import java.io.FileOutputStream;
-import java.io.File;
import java.awt.*;
/**
package org.apache.poi.hslf.examples;
import org.apache.poi.hslf.usermodel.SlideShow;
-import org.apache.poi.hslf.usermodel.RichTextRun;
import org.apache.poi.hslf.model.*;
-import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.awt.*;
import java.awt.*;
import java.io.FileOutputStream;
-import java.io.FileInputStream;
/**
* Demonstrates how to draw into a slide using the HSLF Graphics2D driver.
import org.apache.poi.hslf.usermodel.*;
import org.apache.poi.hslf.model.*;
-import org.apache.poi.hslf.record.TextHeaderAtom;
import javax.imageio.ImageIO;
-import java.io.IOException;
import java.io.FileOutputStream;
-import java.io.File;
import java.io.FileInputStream;
import java.awt.*;
import java.awt.image.BufferedImage;
-import java.awt.geom.AffineTransform;
import java.awt.geom.Rectangle2D;
/**
//System.out.println(entry.getName() + ": " + embeddedWorkbook.getNumberOfSheets());\r
} else if (oleName.equals("Document")) {\r
DirectoryNode dn = (DirectoryNode) obj.getDirectory();\r
- HWPFDocument embeddedWordDocument = new HWPFDocument(dn, fs);\r
+ HWPFDocument embeddedWordDocument = new HWPFDocument(dn);\r
//System.out.println(entry.getName() + ": " + embeddedWordDocument.getRange().text());\r
} else if (oleName.equals("Presentation")) {\r
DirectoryNode dn = (DirectoryNode) obj.getDirectory();\r
- SlideShow embeddedPowerPointDocument = new SlideShow(new HSLFSlideShow(dn, fs));\r
+ SlideShow embeddedPowerPointDocument = new SlideShow(new HSLFSlideShow(dn));\r
//System.out.println(entry.getName() + ": " + embeddedPowerPointDocument.getSlides().length);\r
} else {\r
if(obj.hasDirectoryEntry()){\r
import org.apache.poi.openxml4j.exceptions.InvalidFormatException ;
import org.apache.poi.ss.formula.functions.FreeRefFunction ;
-import org.apache.poi.ss.formula.udf.AggregatingUDFFinder ;
import org.apache.poi.ss.formula.udf.DefaultUDFFinder ;
import org.apache.poi.ss.formula.udf.UDFFinder ;
import org.apache.poi.ss.usermodel.*;
package org.apache.poi.xslf.usermodel;\r
\r
import java.awt.*;\r
-import java.awt.geom.Rectangle2D;\r
import java.io.FileOutputStream;\r
import java.io.IOException;\r
\r
package org.apache.poi.xwpf.usermodel;
import org.apache.poi.util.Units;
-import org.openxmlformats.schemas.wordprocessingml.x2006.main.*;
import java.io.FileInputStream;
import java.io.FileOutputStream;
-import java.math.BigInteger;
-import java.util.List;
/**
* Demonstrates how to add pictures in a .docx document