资源简介
实现各类型的文件转换成HTML,包含所有代码和JAR包,支持DOC、DOCX、PPT、PPTX、XLS、XLSX、TXT、PDF及各类型的图片文件等等
代码片段和文件信息
package utils.changehtml;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.awt.image.Raster;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.RandomAccessFile;
import java.lang.reflect.Method;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import javax.imageio.ImageIO;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.apache.poi.hslf.model.Slide;
import org.apache.poi.hslf.model.TextRun;
import org.apache.poi.hslf.usermodel.RichTextRun;
import org.apache.poi.hslf.usermodel.SlideShow;
import org.apache.poi.hssf.usermodel.HSSFCellstyle;
import org.apache.poi.hssf.usermodel.HSSFDataFormat;
import org.apache.poi.hssf.usermodel.HSSFDateUtil;
import org.apache.poi.hssf.usermodel.HSSFFont;
import org.apache.poi.hssf.usermodel.HSSFPalette;
import org.apache.poi.hssf.usermodel.HSSFPictureData;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.hwpf.HWPFDocument;
import org.apache.poi.hwpf.converter.PicturesManager;
import org.apache.poi.hwpf.converter.WordToHtmlConverter;
import org.apache.poi.hwpf.usermodel.PictureType;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Cellstyle;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.WorkbookFactory;
import org.apache.poi.ss.util.CellRangeAddress;
import org.apache.poi.xslf.usermodel.xmlSlideShow;
import org.apache.poi.xslf.usermodel.XSLFShape;
import org.apache.poi.xslf.usermodel.XSLFSlide;
import org.apache.poi.xslf.usermodel.XSLFTextParagraph;
import org.apache.poi.xslf.usermodel.XSLFTextRun;
import org.apache.poi.xslf.usermodel.XSLFTextShape;
import org.apache.poi.xssf.usermodel.XSSFCellstyle;
import org.apache.poi.xssf.usermodel.XSS
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 38672 2017-10-10 09:24 HTML转换\ChangeToHTML.java
文件 219658 2017-09-29 09:52 HTML转换\fontbox-1.8.13.jar
文件 15555629 2017-09-27 10:48 HTML转换\ooxm
文件 153191 2012-11-30 14:51 HTML转换\org.apache.poi.xwpf.converter.core-1.0.0.jar
文件 50397 2012-11-30 14:55 HTML转换\org.apache.poi.xwpf.converter.xhtml-1.0.0.jar
文件 4094523 2017-09-28 16:53 HTML转换\pdfbox-1.8.13.jar
文件 2115478 2013-10-16 17:50 HTML转换\pdfrenderer-0.9.1.jar
文件 1869113 2012-12-06 07:15 HTML转换\poi-3.9.jar
文件 936648 2012-12-06 07:19 HTML转换\poi-ooxm
文件 4706775 2017-09-26 13:34 HTML转换\poi-ooxm
文件 1226511 2012-12-06 07:17 HTML转换\poi-scratchpad-3.9.jar
文件 2666695 2017-09-26 13:24 HTML转换\xm
目录 0 2017-10-10 09:25 HTML转换
----------- --------- ---------- ----- ----
33633290 13
评论
共有 条评论