类 DocToHtmlUtils
java.lang.Object
com.publiccms.common.tools.DocToHtmlUtils
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static String
private static String
documentToHtml
(Document htmlDocument) static String
docxToHtml
(File file, fr.opensagres.poi.xwpf.converter.core.ImageManager imageManager) static String
excelToHtml
(File file, fr.opensagres.poi.xwpf.converter.core.ImageManager imageManager) static String
static String
static String
pptToHtml
(File file, String defaultFontFamily, fr.opensagres.poi.xwpf.converter.core.ImageManager imageManager)
-
字段详细资料
-
WIDTH_HEIGHT_PATTERN
-
allFonts
-
-
构造器详细资料
-
DocToHtmlUtils
private DocToHtmlUtils()
-
-
方法详细资料
-
docToHtml
public static String docToHtml(File file, org.apache.poi.hwpf.converter.PicturesManager picturesManager) throws IOException, ParserConfigurationException, TransformerException - 参数:
file
-picturesManager
-- 返回:
- html
- 抛出:
IOException
ParserConfigurationException
TransformerException
-
docxToHtml
public static String docxToHtml(File file, fr.opensagres.poi.xwpf.converter.core.ImageManager imageManager) throws IOException - 参数:
file
-imageManager
-- 返回:
- html
- 抛出:
IOException
-
pdfToHtml
- 参数:
filePath
-width
-height
-- 返回:
-
pdfToHtml
public static String pdfToHtml(File file, org.fit.pdfdom.resource.HtmlResourceHandler imageHandler) throws IOException, ClassCastException, TransformerException - 参数:
file
-imageHandler
-- 返回:
- 抛出:
IOException
ClassCastException
TransformerException
-
pptToHtml
public static String pptToHtml(File file, String defaultFontFamily, fr.opensagres.poi.xwpf.converter.core.ImageManager imageManager) throws org.apache.poi.EncryptedDocumentException, IOException - 参数:
file
-defaultFontFamily
-imageManager
-- 返回:
- 抛出:
IOException
org.apache.poi.EncryptedDocumentException
-
documentToHtml
- 参数:
htmlDocument
-- 抛出:
TransformerException
-
excelToHtml
public static String excelToHtml(File file, fr.opensagres.poi.xwpf.converter.core.ImageManager imageManager) throws IOException, ParserConfigurationException, TransformerException - 参数:
file
-imageManager
-- 返回:
- 抛出:
IOException
ParserConfigurationException
TransformerException
-