public class DocToHtmlUtils
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
(专用程序包) static class |
DocToHtmlUtils.StyleOnlyDocumentFacade |
限定符和类型 | 字段和说明 |
---|---|
protected static java.util.List<java.lang.String> |
allFonts |
protected static java.util.regex.Pattern |
WIDTH_HEIGHT_PATTERN |
限定符 | 构造器和说明 |
---|---|
private |
DocToHtmlUtils() |
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
docToHtml(java.io.File file,
org.apache.poi.hwpf.converter.PicturesManager picturesManager) |
private static java.lang.String |
documentToHtml(org.w3c.dom.Document htmlDocument) |
static java.lang.String |
docxToHtml(java.io.File file,
fr.opensagres.poi.xwpf.converter.core.ImageManager imageManager) |
static java.lang.String |
excelToHtml(java.io.File file,
fr.opensagres.poi.xwpf.converter.core.ImageManager imageManager) |
static java.lang.String |
pdfToHtml(java.io.File file,
org.fit.pdfdom.resource.HtmlResourceHandler imageHandler) |
static java.lang.String |
pdfToHtml(java.lang.String filePath,
java.lang.String width,
java.lang.String height) |
static java.lang.String |
pptToHtml(java.io.File file,
java.lang.String defaultFontFamily,
fr.opensagres.poi.xwpf.converter.core.ImageManager imageManager) |
protected static final java.util.regex.Pattern WIDTH_HEIGHT_PATTERN
protected static final java.util.List<java.lang.String> allFonts
public static java.lang.String docToHtml(java.io.File file, org.apache.poi.hwpf.converter.PicturesManager picturesManager) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
file
- picturesManager
- java.io.IOException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
public static java.lang.String docxToHtml(java.io.File file, fr.opensagres.poi.xwpf.converter.core.ImageManager imageManager) throws java.io.IOException
file
- imageManager
- java.io.IOException
public static java.lang.String pdfToHtml(java.lang.String filePath, java.lang.String width, java.lang.String height)
filePath
- width
- height
- public static java.lang.String pdfToHtml(java.io.File file, org.fit.pdfdom.resource.HtmlResourceHandler imageHandler) throws java.io.IOException, java.lang.ClassCastException, javax.xml.transform.TransformerException
file
- imageHandler
- java.io.IOException
java.lang.ClassCastException
javax.xml.transform.TransformerException
public static java.lang.String pptToHtml(java.io.File file, java.lang.String defaultFontFamily, fr.opensagres.poi.xwpf.converter.core.ImageManager imageManager) throws org.apache.poi.EncryptedDocumentException, java.io.IOException
file
- defaultFontFamily
- imageManager
- java.io.IOException
org.apache.poi.EncryptedDocumentException
private static java.lang.String documentToHtml(org.w3c.dom.Document htmlDocument) throws javax.xml.transform.TransformerException
htmlDocument
- javax.xml.transform.TransformerException
public static java.lang.String excelToHtml(java.io.File file, fr.opensagres.poi.xwpf.converter.core.ImageManager imageManager) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException
file
- imageManager
- java.io.IOException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException